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/
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
>>> 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
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