x86/pv: Factor out the calculation of LDT/GDT descriptor pointers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Oct 2017 10:55:00 +0000 (10:55 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Dec 2017 19:03:27 +0000 (19:03 +0000)
commit6dab6c583ead41646428aa693dad85b916751083
tree7cc21e82c1e7ad3cc5a58a5468c262684b14e1c4
parent08f27f4468eedbeccaac9fdda4ef732247efd74e
x86/pv: Factor out the calculation of LDT/GDT descriptor pointers

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 <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/emul-gate-op.c
xen/arch/x86/pv/emulate.c
xen/arch/x86/pv/emulate.h