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

Message ID 20190205223427.7387-3-krish.sadhukhan@oracle.com
State New
Headers show
Series
  • [1/4,v2,nVMX] : Add a vmentry check for HOST_SYSENTER_ESP and HOST_SYSENTER_EIP fields
Related show

Commit Message

Krish Sadhukhan Feb. 5, 2019, 10:34 p.m. UTC
.. 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(-)

Comments

Jim Mattson Feb. 6, 2019, 5:34 p.m. UTC | #1
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 mbox series

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)