[1/4,kvm-unit-test,nVMX] : Rename guest_pat_main to guest_state_test_main
diff mbox series

Message ID 20190509212055.29933-2-krish.sadhukhan@oracle.com
State New
Headers show
Series
  • : Test "load IA32_PERF_GLOBAL_CONTROL" VM-entry control on vmentry of nested guests
Related show

Commit Message

Krish Sadhukhan May 9, 2019, 9:20 p.m. UTC
...so that it can be re-used by other tests.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
---
 x86/vmx_tests.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index c01fa9d..ee96596 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -4995,7 +4995,7 @@  static void test_sysenter_field(u32 field, const char *name)
 	vmcs_write(field, addr_saved);
 }
 
-static void guest_pat_main(void)
+static void guest_state_test_main(void)
 {
 	while (1) {
 		if (vmx_get_test_stage() != 2)
@@ -5097,7 +5097,7 @@  static void test_pat(u32 fld, const char * fld_name, u32 ctrl_fld, u64 ctrl_bit)
 	vmcs_clear_bits(ctrl_fld, ctrl_bit);
 	if (fld == GUEST_PAT) {
 		vmx_set_test_stage(1);
-		test_set_guest(guest_pat_main);
+		test_set_guest(guest_state_test_main);
 	}
 
 	for (i = 0; i < 256; i = (i < PAT_VAL_LIMIT) ? i + 1 : i * 2) {