Skip to contentSkip to conversation

svm: remove bogus MSRPM test

PATCH New Paolo Bonzini 1 participant 1 message Jun 11, 2021 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 svm: remove bogus MSRPM test

The MSR permission bitmap is two pages long. Therefore, the first test in test_msrpm_iopm_bitmap_addrs should actually pass. The problem is that KVM tries to merge the L1 MSR permission bitmap with its own at VMRUN time, fails to map the address of the L1 MSR permission bitmap, and fails.

Thus remove the bogus test, which is failing on QEMU.

---
 x86/svm_tests.c | 3 ---
 1 file changed, 3 deletions(-)
x86/svm_tests.c +0 -3
index 8387bea..3937b80 100644
@@ -2456,9 +2456,6 @@ static void test_msrpm_iopm_bitmap_addrs(void)
 	u64 addr_beyond_limit = 1ull << cpuid_maxphyaddr();
 	u64 addr = virt_to_phys(msr_bitmap) & (~((1ull << 12) - 1));
 
-	TEST_BITMAP_ADDR(saved_intercept, INTERCEPT_MSR_PROT,
-			addr_beyond_limit - 3 * PAGE_SIZE, SVM_EXIT_ERR,
-			"MSRPM");
 	TEST_BITMAP_ADDR(saved_intercept, INTERCEPT_MSR_PROT,
 			addr_beyond_limit - 2 * PAGE_SIZE, SVM_EXIT_ERR,
 			"MSRPM");
Signature · 1 line
2.31.1