This is the unit test for the "load IA32_PAT" VM-entry control. Patch# 2 builds on top of my previous patch, [PATCH 6/6 v5][kvm-unit-test nVMX]: Check "load IA32_PAT" on vmentry of L2 guests [PATCH 1/2][kvm-unit-test nVMX]: Move the functionality of enter_guest() to [PATCH 2/2][kvm-unit-test nVMX]: Check "load IA32_PAT" VM-entry control on vmentry x86/vmx.c | 27 +++++++---- x86/vmx.h | 4 ++ x86/vmx_tests.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 143 insertions(+), 28 deletions(-) Krish Sadhukhan (2): nVMX: Move the functionality of enter_guest() to __enter_guest() and make the former a wrapper of the latter nVMX: Check "load IA32_PAT" VM-entry control on vmentry of nested guests