[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory.
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory. |
Date: |
Tue, 17 Jul 2012 19:36:45 +0100 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
On Tue, 17 Jul 2012, Avi Kivity wrote:
> On 07/17/2012 04:59 PM, Anthony PERARD wrote:
> >>
> >> This is pretty ugly. An alternative is to set up a periodic bitmap scan
> >> that looks at the qemu dirty bitmap and calls xen_modified_memory() for
> >> dirty page ranges, and clears the bitmap for the next pass. Is it
> >> workable?
> >
> > I don't think a periodic scan can do anything useful, unfortunately.
>
> Why not?
I vaguely remember that we used to have a bitmap years ago, but, aside from
making the code much more complicated, it caused blue screens on
intensive disk accesses.
> >> (is xen_modified_memory a hypercall, or does it maintain an in-memory
> >> structure?)
> >
> > It's an hypercall. The function do something (call the hypercall) only
> > during migration, otherwise it return immediately.
>
> I see. I guess it isn't expensive for you because there isn't much dma
> done by qemu usually with xen (unlike kvm where pv block devices are
> implemented in qemu).
>
> How about pushing the call into cpu_physical_memory_set_dirty_flags()?
> Would that reduce the number of call sites?
Pushing the calls to cpu_physical_memory_set_dirty_flags and
cpu_physical_memory_set_dirty_range would make the code much nicer.
However being these functions in exec-obsolete.h, are they at risk of
removal?
- [Qemu-devel] [PATCH 0/4] Xen, introducing dirty log for migration., Anthony PERARD, 2012/07/17
- [Qemu-devel] [PATCH 2/4] xen: Introduce xen_modified_memory., Anthony PERARD, 2012/07/17
- [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/07/17
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Avi Kivity, 2012/07/17
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/07/17
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Avi Kivity, 2012/07/17
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory.,
Stefano Stabellini <=
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Avi Kivity, 2012/07/18
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/07/19
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Avi Kivity, 2012/07/19
- Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/07/19
Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory., Stefano Stabellini, 2012/07/17
[Qemu-devel] [PATCH 1/4] QMP, Introduce set-global-dirty-log command., Anthony PERARD, 2012/07/17