Patchwork [2/4,v3,kvm-unit-test,nVMX] : Move test_vm_entry_ctls() below test_vm_exit_ctls()

login
register
mail settings
Submitter Krish Sadhukhan
Date Feb. 7, 2019, 7:05 p.m.
Message ID <20190207190533.12438-3-krish.sadhukhan@oracle.com>
Download mbox | patch
Permalink /patch/721159/
State New
Headers show

Comments

Krish Sadhukhan - Feb. 7, 2019, 7:05 p.m.
.. to align the checks according to the order in Intel SDM.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
---
 x86/vmx_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Christopherson, Sean J - Feb. 12, 2019, 4:02 p.m.
On Thu, Feb 07, 2019 at 02:05:31PM -0500, Krish Sadhukhan wrote:
>  .. to align the checks according to the order in Intel SDM.
> 
> Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
> Reviewed-by: Jim Mattson <jmattson@google.com>

Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>

Patch

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index ee0c9ff..9a3cdee 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -4923,8 +4923,8 @@  static void vmx_controls_test(void)
 	vmcs_write(GUEST_RFLAGS, 0);
 
 	test_vm_execution_ctls();
-	test_vm_entry_ctls();
 	test_vm_exit_ctls();
+	test_vm_entry_ctls();
 }
 
 static bool valid_vmcs_for_vmentry(void)