Re: [Xen-devel] [PATCH v2 1/2] x86/mm: don't wrap x86_emulate_ctxt in ptwr_emulate_ctxt

2017-09-01 Thread Jan Beulich
>>> On 31.08.17 at 13:22, wrote: > @@ -5221,10 +5217,12 @@ int ptwr_do_page_fault(struct vcpu *v, unsigned long > addr, > goto bail; > } > > -ptwr_ctxt.cr2 = addr; > -ptwr_ctxt.pte = pte; > +ptwr_ctxt = (struct ptwr_emulate_ctxt) { > +.cr2

Re: [Xen-devel] [PATCH v2 1/2] x86/mm: don't wrap x86_emulate_ctxt in ptwr_emulate_ctxt

2017-08-31 Thread Andrew Cooper
On 31/08/17 12:22, Wei Liu wrote: > Rewrite the code so that it has the same structure as > mmio_ro_emualte_ctxt. x86_emulate_ctxt now points to ptwr_emulate_ctxt > via its data pointer. > > This patch will help unify mmio_ro and ptwr code paths later. > > Signed-off-by: Wei Liu

[Xen-devel] [PATCH v2 1/2] x86/mm: don't wrap x86_emulate_ctxt in ptwr_emulate_ctxt

2017-08-31 Thread Wei Liu
Rewrite the code so that it has the same structure as mmio_ro_emualte_ctxt. x86_emulate_ctxt now points to ptwr_emulate_ctxt via its data pointer. This patch will help unify mmio_ro and ptwr code paths later. Signed-off-by: Wei Liu --- v2: do away with pointer in