@@ -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
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(-)