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

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

Comments

Krish Sadhukhan - Feb. 5, 2019, 10:34 p.m.
.. to align the checks according to the order in Intel SDM.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
---
 x86/vmx_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jim Mattson - Feb. 6, 2019, 5:34 p.m.
On Tue, Feb 5, 2019 at 2:59 PM Krish Sadhukhan
<krish.sadhukhan@oracle.com> 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>

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)