Even thought today's x86 hardware uses paging and not segmentation for memory management, it is still good to have some tests that can verify the sanity of the segment register fields on vmentry of nested guests. The test on SS Selector field is failing because the hardware (I am using Intel Xeon Platinum 8167M 2.00GHz) doesn't raise any error even if the prescribed bit pattern is not set and as a result vmentry succeeds. [PATCH] kvm-unit-test: nVMX: Test Selector and Base Address fields of Guest Segment lib/x86/processor.h | 1 + x86/vmx_tests.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) Krish Sadhukhan (1): nVMX: Test Selector and Base Address fields of Guest Segment Registers on