This is v2 of the patches sent out earlier. Based on Jim Mattson's comments on v1, I have made the following changes in patch# 2: i) Separate the check for "NMI-window exiting" so that the sub-tests for PIN_NMI and PIN_VIRT_NMI can execute even if "NMI-window exiting" is not supported by the platform. ii) Keep the user-visible strings on one line. [PATCH nVMX 1/2] x86: Enforce NMI controls on vmentry of L2 guests [PATCH nVMX TEST 2/2] x86: Add test for checking NMI controls on vmentry of L2 arch/x86/kvm/vmx.c | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) Krish Sadhukhan (1): x86: Enforce NMI controls on vmentry of L2 guests x86/vmx_tests.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) Krish Sadhukhan (1): x86: Add test for checking NMI controls on vmentry of L2 guests