Re: [Xen-devel] [PATCH v4 11/31] x86/mm: split out writable pagetable emulation code

2017-08-30 Thread Wei Liu
On Wed, Aug 30, 2017 at 09:23:20AM -0600, Jan Beulich wrote: > >>> On 30.08.17 at 16:07, wrote: > > On Thu, Aug 24, 2017 at 09:15:36AM -0600, Jan Beulich wrote: > >> >>> On 17.08.17 at 16:44, wrote: > >> > +/* > >> > + * Writable Pagetables > >> > + */ > >> > + > >> > +str

Re: [Xen-devel] [PATCH v4 11/31] x86/mm: split out writable pagetable emulation code

2017-08-30 Thread Jan Beulich
>>> On 30.08.17 at 16:07, wrote: > On Thu, Aug 24, 2017 at 09:15:36AM -0600, Jan Beulich wrote: >> >>> On 17.08.17 at 16:44, wrote: >> > +/* >> > + * Writable Pagetables >> > + */ >> > + >> > +struct ptwr_emulate_ctxt { >> > +struct x86_emulate_ctxt ctxt; >> > +uns

Re: [Xen-devel] [PATCH v4 11/31] x86/mm: split out writable pagetable emulation code

2017-08-30 Thread Wei Liu
On Thu, Aug 24, 2017 at 09:15:36AM -0600, Jan Beulich wrote: > >>> On 17.08.17 at 16:44, wrote: > > Move the code to pv/emul-ptwr-op.c. Fix coding style issues while > > moving the code. > > > > Rename ptwr_emulated_read to pv_emul_ptwr_read and export it via > > pv/mm.h because it is needed by o

Re: [Xen-devel] [PATCH v4 11/31] x86/mm: split out writable pagetable emulation code

2017-08-24 Thread Jan Beulich
>>> On 17.08.17 at 16:44, wrote: > Move the code to pv/emul-ptwr-op.c. Fix coding style issues while > moving the code. > > Rename ptwr_emulated_read to pv_emul_ptwr_read and export it via > pv/mm.h because it is needed by other emulation code. If other emulated code uses it, renaming the functi

[Xen-devel] [PATCH v4 11/31] x86/mm: split out writable pagetable emulation code

2017-08-17 Thread Wei Liu
Move the code to pv/emul-ptwr-op.c. Fix coding style issues while moving the code. Rename ptwr_emulated_read to pv_emul_ptwr_read and export it via pv/mm.h because it is needed by other emulation code. Signed-off-by: Wei Liu --- xen/arch/x86/mm.c | 308 +