diff mbox series

[RFC,kvm-unit-tests,2/4] x86/apic: Disable PIT for x2apic test to allow SVM AVIC to be tested

Message ID 6aba109b9ac7e883d00b74d084e58f37acd805e3.1740479886.git.naveen@kernel.org (mailing list archive)
State New
Headers show
Series x86/apic: SVM AVIC tests and some cleanups | expand

Commit Message

Naveen N Rao (AMD) Feb. 25, 2025, 10:40 a.m. UTC
SVM AVIC is inhibited if kvm-pit is enabled in the default "reinject"
mode. Commit f5cfdd33cb21 ("x86/apic: Add test config to allow running
apic tests against SVM's AVIC") disabled PIT in xapic test to allow AVIC
to be tested. However, since then, AVIC has been enabled to work in
x2apic mode, but still requires PIT to either be disabled or set to
"discard".

Update x2apic test to disable PIT so that AVIC can be exercized with
x2apic.

Signed-off-by: Naveen N Rao (AMD) <naveen@kernel.org>
---
 x86/unittests.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 8d046e6d7356..35fb88c3cb79 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -14,10 +14,11 @@  extra_params = -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split
 arch = x86_64
 groups = apic
 
+# Don't create a Programmable Interval Timer (PIT, a.k.a 8254) to allow testing SVM's AVIC
 [x2apic]
 file = apic.flat
 smp = 2
-extra_params = -cpu qemu64,+x2apic,+tsc-deadline
+extra_params = -cpu qemu64,+x2apic,+tsc-deadline -machine pit=off
 arch = x86_64
 timeout = 30
 groups = apic