Re: [Xen-devel] [PATCH v3 3/3] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-19 Thread Jan Beulich
>>> On 19.09.17 at 16:39, wrote: >> +static void *hvmemul_map_linear_addr( >> +unsigned long linear, unsigned int bytes, uint32_t pfec, >> +struct hvm_emulate_ctxt *hvmemul_ctxt) >> +{ >> +struct vcpu *curr = current; >> +void *err, *mapping; >> + >> +/* First and final gfns wh

Re: [Xen-devel] [PATCH v3 3/3] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Alexandru Isaila [mailto:aisa...@bitdefender.com] > Sent: 19 September 2017 15:14 > To: xen-devel@lists.xen.org > Cc: Tim (Xen.org) ; George Dunlap > ; jbeul...@suse.com; Andrew Cooper > ; Ian Jackson ; > konrad.w...@oracle.com; sstabell...@kernel.org; Wei Liu >

Re: [Xen-devel] [PATCH v3 3/3] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-19 Thread Jan Beulich
>>> On 19.09.17 at 16:14, wrote: > From: Andrew Cooper > > An access which crosses a page boundary is performed atomically by x86 > hardware, albeit with a severe performance penalty. An important corner > case > is when a straddled access hits two pages which differ in whether a > translation

[Xen-devel] [PATCH v3 3/3] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-19 Thread Alexandru Isaila
From: Andrew Cooper An access which crosses a page boundary is performed atomically by x86 hardware, albeit with a severe performance penalty. An important corner case is when a straddled access hits two pages which differ in whether a translation exists, or in net access rights. The use of hvm