Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-06-16 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > > > On 30/03/2015 16:07, Dr. David Alan Gilbert wrote: > >>> > > > >> > > >> > You would just require new _installed_ kernel headers. Then you can use > >> > linux/userfaultfd.h and syscall.h (the latter from glibc, includes > >> > asm/unistd.h to

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-30 Thread Paolo Bonzini
On 30/03/2015 16:07, Dr. David Alan Gilbert wrote: >>> > > >> > >> > You would just require new _installed_ kernel headers. Then you can use >> > linux/userfaultfd.h and syscall.h (the latter from glibc, includes >> > asm/unistd.h to get syscall numbers). >> > >> > linux-headers/ is useful fo

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-30 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > > > On 13/03/2015 11:41, Dr. David Alan Gilbert wrote: > >>> > > +#ifdef HOST_X86_64 > >>> > > +#ifndef __NR_userfaultfd > >>> > > +#define __NR_userfaultfd 323 > >> > > >> > Sholdn't this come from the kernel headers imported in the previous > >> >

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-30 Thread Paolo Bonzini
On 13/03/2015 11:41, Dr. David Alan Gilbert wrote: >>> > > +#ifdef HOST_X86_64 >>> > > +#ifndef __NR_userfaultfd >>> > > +#define __NR_userfaultfd 323 >> > >> > Sholdn't this come from the kernel headers imported in the previous >> > patch? Rather than having an arch-specific hack. > The header

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-15 Thread David Gibson
On Fri, Mar 13, 2015 at 10:41:53AM +, Dr. David Alan Gilbert wrote: > * David Gibson (da...@gibson.dropbear.id.au) wrote: > > On Wed, Feb 25, 2015 at 04:51:45PM +, Dr. David Alan Gilbert (git) > > wrote: > > > From: "Dr. David Alan Gilbert" > > > > > > Provide a check to see if the OS we

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-13 Thread Dr. David Alan Gilbert
* David Gibson (da...@gibson.dropbear.id.au) wrote: > On Wed, Feb 25, 2015 at 04:51:45PM +, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Provide a check to see if the OS we're running on has all the bits > > needed for postcopy. > > > > Creates postcopy-ram.

Re: [Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-03-12 Thread David Gibson
On Wed, Feb 25, 2015 at 04:51:45PM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Provide a check to see if the OS we're running on has all the bits > needed for postcopy. > > Creates postcopy-ram.c which will get most of the other helpers we need. > > Signed-of

[Qemu-devel] [PATCH v5 22/45] postcopy: OS support test

2015-02-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Provide a check to see if the OS we're running on has all the bits needed for postcopy. Creates postcopy-ram.c which will get most of the other helpers we need. Signed-off-by: Dr. David Alan Gilbert --- include/migration/postcopy-ram.h | 19 + migration/Mak