x86/cpuid: expose NullSelectorClearsBase CPUID bit to guests
authorJane Malalane <jane.malalane@citrix.com>
Tue, 7 Sep 2021 07:40:25 +0000 (09:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:40:25 +0000 (09:40 +0200)
commit5ae4120635ad3cbf6064268162b0fb2c44eb41e3
tree78b405eaf0e79ec9e3aaf327b363249a8d891663
parent111469cc7b3f586c2335e70205320ed3c828b89e
x86/cpuid: expose NullSelectorClearsBase CPUID bit to guests

AMD Zen3 adds the NullSelectorClearsBase bit to indicate that loading
a NULL segment selector zeroes the base and limit fields, as well as
just attributes.

Expose bit to all guests.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jane Malalane <jane.malalane@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libs/light/libxl_cpuid.c
tools/misc/xen-cpuid.c
xen/include/public/arch-x86/cpufeatureset.h