x86: relax LDT check in arch_set_info_guest()
authorJan Beulich <jbeulich@suse.com>
Thu, 28 May 2020 10:00:24 +0000 (12:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 May 2020 10:00:24 +0000 (12:00 +0200)
commitcb8a478e1d246c1273e457d9c48d4609416c82e5
tree4498a8d8a066b12b1bf3b58c1d325f5febd13586
parent6b75c7a95420acbb9c118624ff0a5e973287c1e4
x86: relax LDT check in arch_set_info_guest()

It is wrong for us to check the base address when there's no LDT in the
first place. Once we don't do this check anymore we can also set the
base address to a non-canonical value when the LDT is empty.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/mm.c