On Fri, May 22, 2020 at 08:26:01PM -0400, Krish Sadhukhan wrote: > According to section "Checks on Guest Descriptor-Table Registers" in Intel > SDM vol 3C, the following check is performed on the Guest Descriptor-Table > Registers on vmentry of nested guests: > > - On processors that support Intel 64 architecture, the base-address > fields must contain canonical addresses. > > Signed-off-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx> > --- > x86/vmx_tests.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c > index 68f93d3..fa27d99 100644 > --- a/x86/vmx_tests.c > +++ b/x86/vmx_tests.c > @@ -7827,6 +7827,11 @@ static void vmx_guest_state_area_test(void) > test_load_guest_perf_global_ctrl(); > test_load_guest_bndcfgs(); > > +#ifdef __x86_64__ Aren't the VMX tests 64-bit only? > + test_canonical(GUEST_BASE_GDTR, "GUEST_BASE_GDTR", false); > + test_canonical(GUEST_BASE_IDTR, "GUEST_BASE_IDTR", false); > +#endif > + > /* > * Let the guest finish execution > */ > -- > 1.8.3.1 >