Re: [Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-09 Thread Roger Pau Monne
On Thu, Feb 09, 2017 at 03:10:10AM -0700, Jan Beulich wrote: > >>> On 07.02.17 at 18:35, wrote: > > @@ -3178,9 +3179,9 @@ static enum hvm_copy_result __hvm_copy( > > { > > static unsigned long lastpage; > > if ( xchg(&lastpage, gfn) != gfn ) > > -

Re: [Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-09 Thread Jan Beulich
>>> On 07.02.17 at 18:35, wrote: > @@ -3178,9 +3179,9 @@ static enum hvm_copy_result __hvm_copy( > { > static unsigned long lastpage; > if ( xchg(&lastpage, gfn) != gfn ) > -gdprintk(XENLOG_DEBUG, "guest attempted write to > read-

Re: [Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-08 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, February 08, 2017 9:37 PM > > >>> On 07.02.17 at 18:35, wrote: > > Current __hvm_copy assumes that the destination memory belongs to the > > current > > vcpu, but this is not always the case since for PVHv2 Dom0 build hvm copy > >

Re: [Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-08 Thread Jan Beulich
>>> On 07.02.17 at 18:35, wrote: > Current __hvm_copy assumes that the destination memory belongs to the current > vcpu, but this is not always the case since for PVHv2 Dom0 build hvm copy > functions are used with current being the idle vcpu. Add a new vcpu > parameter > to hvm copy in order to

Re: [Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-08 Thread Jan Beulich
>>> On 07.02.17 at 18:35, wrote: > Current __hvm_copy assumes that the destination memory belongs to the current > vcpu, but this is not always the case since for PVHv2 Dom0 build hvm copy > functions are used with current being the idle vcpu. Add a new vcpu parameter > to hvm copy in order to sol

[Xen-devel] [PATCH v6] x86/hvm: add vcpu parameter to guest memory copy function

2017-02-07 Thread Roger Pau Monne
Current __hvm_copy assumes that the destination memory belongs to the current vcpu, but this is not always the case since for PVHv2 Dom0 build hvm copy functions are used with current being the idle vcpu. Add a new vcpu parameter to hvm copy in order to solve that. Note that only hvm_copy_to_guest_