v1 -> v2: 1. Updated commit message in the patches 2. kvm_mtrr_valid() has been used to replace what nested_check_pat_fields() was doing in patch# 1. 3. In patch# 4, the for-loop for the negative tests are now run from 0 through 8 only. 4. Patch# 4 now contains only the test for "load IA32_PAT" VM-exit control. I will send a separate unit-test patch for "load IA32_PAT" VM-entry control, as I am still working on it. [PATCH 1/4 v2][KVM nVMX]: Check "load IA32_PAT" VM-entry control on vmentry [PATCH 2/4 v2][KVM nVMX]: Move the checks for Guest Control Registers and [PATCH 3/4 v2][KVM nVMX]: Move the checks for Guest Control Registers and [PATCH 4/4 v2][kvm-unit-test nVMX]: Check "load IA32_PAT" on vmentry of nested guests arch/x86/kvm/vmx/nested.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) Krish Sadhukhan (3): nVMX: Check "load IA32_PAT" VM-exit control on vmentry of nested guests nVMX: Check "load IA32_PAT" VM-entry control on vmentry nested guests nVMX: Move the checks for Guest Control Registers and Guest MSRs to a separate function x86/vmx_tests.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) Krish Sadhukhan (1): nVMX: Check "load IA32_PAT" on vmentry of L2 guests