Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-08 Thread Ian Campbell
On Wed, 2015-12-02 at 16:30 +0100, Juergen Gross wrote: > On 02/12/15 16:28, Ian Campbell wrote: > > On Wed, 2015-12-02 at 12:36 +, Andrew Cooper wrote: > > > On 02/12/15 07:42, Juergen Gross wrote: > > > > diff --git a/tools/libxc/xc_sr_save_x86_hvm.c > > > >

Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-02 Thread Ian Campbell
On Wed, 2015-12-02 at 16:30 +0100, Juergen Gross wrote: > On 02/12/15 16:28, Ian Campbell wrote: > > On Wed, 2015-12-02 at 12:36 +, Andrew Cooper wrote: > > > On 02/12/15 07:42, Juergen Gross wrote: > > > > diff --git a/tools/libxc/xc_sr_save_x86_hvm.c > > > >

Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-02 Thread Juergen Gross
On 02/12/15 16:28, Ian Campbell wrote: > On Wed, 2015-12-02 at 12:36 +, Andrew Cooper wrote: >> On 02/12/15 07:42, Juergen Gross wrote: >>> diff --git a/tools/libxc/xc_sr_save_x86_hvm.c >>> b/tools/libxc/xc_sr_save_x86_hvm.c >>> index cdee774..3c879ed 100644 >>> ---

Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-02 Thread Ian Campbell
On Wed, 2015-12-02 at 12:36 +, Andrew Cooper wrote: > On 02/12/15 07:42, Juergen Gross wrote: > > diff --git a/tools/libxc/xc_sr_save_x86_hvm.c > > b/tools/libxc/xc_sr_save_x86_hvm.c > > index cdee774..3c879ed 100644 > > --- a/tools/libxc/xc_sr_save_x86_hvm.c > > +++

Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-02 Thread Wei Liu
On Wed, Dec 02, 2015 at 08:42:17AM +0100, Juergen Gross wrote: > For migration the last used pfn of a guest is needed to size the > logdirty bitmap and as an upper bound of the page loop. Unfortunately > there are pv-kernels advertising a much higher maximum pfn as they > are really using in order

Re: [Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-02 Thread Andrew Cooper
On 02/12/15 07:42, Juergen Gross wrote: > diff --git a/tools/libxc/xc_sr_save_x86_hvm.c > b/tools/libxc/xc_sr_save_x86_hvm.c > index cdee774..3c879ed 100644 > --- a/tools/libxc/xc_sr_save_x86_hvm.c > +++ b/tools/libxc/xc_sr_save_x86_hvm.c > @@ -135,6 +135,20 @@ static int

[Xen-devel] [PATCH v2] libxc: try to find last used pfn when migrating

2015-12-01 Thread Juergen Gross
For migration the last used pfn of a guest is needed to size the logdirty bitmap and as an upper bound of the page loop. Unfortunately there are pv-kernels advertising a much higher maximum pfn as they are really using in order to support memory hotplug. This will lead to allocation of much more