[Xen-devel] [PATCH for-next] x86/pv: Factor out the calculation of LDT/GDT descriptor pointers

2017-10-17 Thread Andrew Cooper
Rather than opencoding it in two places. While only used in the PV emulation code, this helper is in principle usable anywhere in the hypervisor. No functional change. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu --- xen/arch/x86/pv/emul-gate-op.c | 5 + xen/arch/x86/pv/

Re: [Xen-devel] [PATCH for-next] x86/pv: Factor out the calculation of LDT/GDT descriptor pointers

2017-10-17 Thread Wei Liu
On Tue, Oct 17, 2017 at 04:05:23PM +0100, Andrew Cooper wrote: > Rather than opencoding it in two places. While only used in the PV emulation > code, this helper is in principle usable anywhere in the hypervisor. > > No functional change. > > Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu

Re: [Xen-devel] [PATCH for-next] x86/pv: Factor out the calculation of LDT/GDT descriptor pointers

2017-10-26 Thread Jan Beulich
>>> On 17.10.17 at 17:05, wrote: > @@ -16,4 +17,14 @@ static inline int pv_emul_is_mem_write(const struct > x86_emulate_state *state, >: X86EMUL_UNHANDLEABLE; > } > > +/* Return a pointer to the GDT/LDT descriptor referenced by sel. */ > +static

Re: [Xen-devel] [PATCH for-next] x86/pv: Factor out the calculation of LDT/GDT descriptor pointers

2017-10-26 Thread Andrew Cooper
On 26/10/17 16:06, Jan Beulich wrote: On 17.10.17 at 17:05, wrote: >> @@ -16,4 +17,14 @@ static inline int pv_emul_is_mem_write(const struct >> x86_emulate_state *state, >>: X86EMUL_UNHANDLEABLE; >> } >> >> +/* Return a pointer to the GDT/LD