[Qemu-devel] [QEMU 6/7] kvm: Add two new arch specific functions

2016-06-13 Thread Liang Li
Add a new function to get the vm's max pfn and a new function to filter out the holes to get a tight free page bitmap. They are implemented on X86, and all the arches should implement them for live migration optimization. Signed-off-by: Liang Li --- include/sysemu/kvm.h | 2 ++ target-arm/kvm.c

Re: [Qemu-devel] [QEMU 6/7] kvm: Add two new arch specific functions

2016-06-18 Thread Michael S. Tsirkin
On Mon, Jun 13, 2016 at 06:16:48PM +0800, Liang Li wrote: > Add a new function to get the vm's max pfn and a new function > to filter out the holes to get a tight free page bitmap. > They are implemented on X86, and all the arches should implement > them for live migration optimization. > > Signed

Re: [Qemu-devel] [QEMU 6/7] kvm: Add two new arch specific functions

2016-06-19 Thread Li, Liang Z
> > --- a/target-arm/kvm.c > > +++ b/target-arm/kvm.c > > @@ -627,3 +627,17 @@ int kvm_arch_msi_data_to_gsi(uint32_t data) { > > return (data - 32) & 0x; > > } > > + > > +unsigned long get_guest_max_pfn(void) { > > +/* To be done */ > > + > > +return 0; > > +} > > + > > +unsigned