qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 02/11] memory: Document that the RAM MR initiali


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 02/11] memory: Document that the RAM MR initializers do not handle migration
Date: Mon, 10 Jul 2017 11:04:43 +0100

On 10 July 2017 at 11:01, Paolo Bonzini <address@hidden> wrote:
>
>
> On 07/07/2017 16:42, Peter Maydell wrote:
>> @@ -522,6 +537,9 @@ void memory_region_init_ram_ptr(MemoryRegion *mr,
>>   * @name: the name of the region.
>>   * @size: size of the region.
>>   * @ptr: memory to be mapped; must contain at least @size bytes.
>> + *
>> + * Note that this function does not do anything to cause the data in the
>> + * RAM memory region to be migrated; that is the responsibility of the 
>> caller.
>
> Perhaps add a note that it rarely makes sense for this function?

Well, we have 4 callers of this function, and 3 of those
register the RAM for migration, so the rare case seems to be
the "don't need to handle migration"...

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]