v4 -> v5: 1. Added back the missing code (call to nested_check_guest_cregs_dregs_msr) in patch# 5. 2. Updated the comment for PAT_VAL_LIMIT in patch# 6 [PATCH 1/6 v5][KVM nVMX]: Check "load IA32_PAT" VM-exit control on vmentry [PATCH 2/6 v5][KVM nVMX]: Check "load IA32_PAT" VM-entry control on vmentry [PATCH 3/6 v5][KVM nVMX]: Move the checks for Guest Control Registers and [PATCH 4/6 v5][KVM nVMX]: nested_check_guest_cregs_dregs_msrs() should return [PATCH 5/6 v5][KVM nVMX]: nested_vmx_check_vmentry_postreqs() should return [PATCH 6/6 v5][kvm-unit-test nVMX]: Check "load IA32_PAT" on vmentry of L2 guests arch/x86/kvm/vmx/nested.c | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) Krish Sadhukhan (5): nVMX: Check "load IA32_PAT" VM-exit control on vmentry nVMX: Check "load IA32_PAT" VM-entry control on vmentry nVMX: Move the checks for Guest Control Registers and Guest MSRs to a separate function nVMX: nested_check_guest_cregs_dregs_msrs() should return -EINVAL for error conditions nVMX: nested_vmx_check_vmentry_postreqs() should return VMX_EXIT_REASONS_FAILED_VMENTRY | EXIT_REASON_INVALID_STATE for error conditions x86/vmx_tests.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) Krish Sadhukhan (1): nVMX: Check "load IA32_PAT" on vmentry of L2 guests