diff mbox series

[kvm-unit-tests,1/4] x86: Remove PCID test that INVPCID isn't enabled without PCID

Message ID 20210212010606.1118184-2-seanjc@google.com (mailing list archive)
State New, archived
Headers show
Series x86: PCID test adjustments | expand

Commit Message

Sean Christopherson Feb. 12, 2021, 1:06 a.m. UTC
Drop the test that verifies INVPCID isn't enabled in the guest without
PCID also being enabled.  SVM allows !PCID && INVPCID, and VMX will soon
follow.

https://lkml.kernel.org/r/20210212003411.1102677-1-seanjc@google.com

Signed-off-by: Sean Christopherson <seanjc@google.com>
---
 x86/pcid.c | 8 --------
 1 file changed, 8 deletions(-)
diff mbox series

Patch

diff --git a/x86/pcid.c b/x86/pcid.c
index a8dc8cb..ee0b726 100644
--- a/x86/pcid.c
+++ b/x86/pcid.c
@@ -26,12 +26,6 @@  static int invpcid_checking(unsigned long type, void *desc)
     return exception_vector();
 }
 
-static void test_cpuid_consistency(int pcid_enabled, int invpcid_enabled)
-{
-    int passed = !(!pcid_enabled && invpcid_enabled);
-    report(passed, "CPUID consistency");
-}
-
 static void test_pcid_enabled(void)
 {
     int passed = 0;
@@ -135,8 +129,6 @@  int main(int ac, char **av)
     if (this_cpu_has(X86_FEATURE_INVPCID))
         invpcid_enabled = 1;
 
-    test_cpuid_consistency(pcid_enabled, invpcid_enabled);
-
     if (pcid_enabled)
         test_pcid_enabled();
     else