Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-18 Thread Tamas K Lengyel
On Wed Feb 18 2015 10:29:40 AM CET, Jan Beulich wrote: > > > > On 17.02.15 at 19:47, wrote: > > On Tue, Feb 17, 2015 at 3:25 PM, Jan Beulich wrote: > > > > > > On 13.02.15 at 17:33, wrote: > > > > -int mem_paging_memop(struct domain *d, xen_mem_paging_op_t *mpo) > > > > +int mem_paging_memop(u

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-18 Thread Jan Beulich
>>> On 17.02.15 at 19:47, wrote: > On Tue, Feb 17, 2015 at 3:25 PM, Jan Beulich wrote: > On 13.02.15 at 17:33, wrote: >>> -int mem_paging_memop(struct domain *d, xen_mem_paging_op_t *mpo) >>> +int mem_paging_memop(unsigned long cmd, >>> + XEN_GUEST_HANDLE_PARAM(xen_mem_pa

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-17 Thread Tamas K Lengyel
On Tue, Feb 17, 2015 at 3:25 PM, Jan Beulich wrote: On 13.02.15 at 17:33, wrote: >> -int mem_paging_memop(struct domain *d, xen_mem_paging_op_t *mpo) >> +int mem_paging_memop(unsigned long cmd, >> + XEN_GUEST_HANDLE_PARAM(xen_mem_paging_op_t) arg) >> { >> -int rc = -

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-17 Thread Jan Beulich
>>> On 13.02.15 at 17:33, wrote: > -int mem_paging_memop(struct domain *d, xen_mem_paging_op_t *mpo) > +int mem_paging_memop(unsigned long cmd, > + XEN_GUEST_HANDLE_PARAM(xen_mem_paging_op_t) arg) > { > -int rc = -ENODEV; > +int rc; > +xen_mem_paging_op_t mpo; > +

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-13 Thread Tamas K Lengyel
On Sat, Feb 14, 2015 at 12:20 AM, Tamas K Lengyel wrote: > On Fri, Feb 13, 2015 at 10:23 PM, Andrew Cooper > wrote: >> On 13/02/15 16:33, Tamas K Lengyel wrote: >>> The memop handler function for paging/sharing responsible for calling XSM >>> doesn't really have anything to do with vm_event, thus

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-13 Thread Tamas K Lengyel
On Fri, Feb 13, 2015 at 10:23 PM, Andrew Cooper wrote: > On 13/02/15 16:33, Tamas K Lengyel wrote: >> The memop handler function for paging/sharing responsible for calling XSM >> doesn't really have anything to do with vm_event, thus in this patch we >> relocate it into mem_paging_memop and mem_sh

Re: [Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-13 Thread Andrew Cooper
On 13/02/15 16:33, Tamas K Lengyel wrote: > The memop handler function for paging/sharing responsible for calling XSM > doesn't really have anything to do with vm_event, thus in this patch we > relocate it into mem_paging_memop and mem_sharing_memop. This has already > been the approach in mem_acce

[Xen-devel] [PATCH V5 10/12] xen/vm_event: Relocate memop checks

2015-02-13 Thread Tamas K Lengyel
The memop handler function for paging/sharing responsible for calling XSM doesn't really have anything to do with vm_event, thus in this patch we relocate it into mem_paging_memop and mem_sharing_memop. This has already been the approach in mem_access_memop, so in this patch we just make it consist