diff mbox series

[kvm-unit-tests,1/5] nVMX: Enable x2APIC mode for virtual-interrupt delivery tests

Message ID 20231211185552.3856862-2-jmattson@google.com (mailing list archive)
State New, archived
Headers show
Series nVMX: Simple posted interrupts test | expand

Commit Message

Jim Mattson Dec. 11, 2023, 6:55 p.m. UTC
Since "virtualize x2APIC mode" is enabled for these tests, call
enable_x2apic() so that the x2apic_ops function table will be
installed.

Signed-off-by: Jim Mattson <jmattson@google.com>
---
 x86/vmx_tests.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index c1540d396da8..e5ed79b7da4a 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -9305,6 +9305,7 @@  static void enable_vid(void)
 
 	assert(cpu_has_apicv());
 
+	enable_x2apic();
 	disable_intercept_for_x2apic_msrs();
 
 	virtual_apic_page = alloc_page();