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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx

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

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
-- 
2.30.0.478.g8a0d178c01-goog




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux