[PATCH 0/4] PVH GDT fixes and cleanup

From: Boris Ostrovsky
Date: Mon Apr 30 2018 - 12:22:12 EST

Switching to new binutils release triggered the first bug.

Not sure if stack canary bug is related to the new tools as well
(haven't checked it with old tools, but they are really old, from
Fedora 13 days).

64-bit guests run fine even without adding the entry for GS but my
guess is that's because Xen toolstack sets cached portions of the
register to sane values and HW makes fewer checks in long mode.
Since those values are not part of the ABI I figured I should fix
it for both 32- and 64-bit mode.

Boris Ostrovsky (4):
xen/PVH: Replace GDT_ENTRY with explicit constant
xen/PVH: Use proper CS selector in long mode
xen/PVH: Set up GS segment for stack canary
xen/PVH: Remove reserved entry in PVH GDT

arch/x86/xen/xen-pvh.S | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)