[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released b
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver. |
Date: |
Tue, 29 Mar 2016 12:48:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 29/03/2016 12:47, Jitendra Kolhe wrote:
> > Indeed. It is correct for the main system RAM, but hot-plugged RAM
> > would also have a zero-based section.offset_within_region. You need to
> > add memory_region_get_ram_addr(section.mr), just like the call to
> > balloon_page adds memory_region_get_ram_ptr(section.mr).
> >
> > Paolo
>
> I am only interested in the offset from memory region base.
> Would below guest PA to host offset work, as we do in
> address_space_translate_internal()?
> (Guest pa - section.offset_within_address_space +
> section.offset_within_region)
Yes, that would work. But I'm not sure why you're not interested in the
ram_addr_t.
Paolo
- [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver., Jitendra Kolhe, 2016/03/28
- Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver., Denis V. Lunev, 2016/03/28
- Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver., Eric Blake, 2016/03/28
- Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver., Michael S. Tsirkin, 2016/03/29
- Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver., Dr. David Alan Gilbert, 2016/03/31