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. Reported-by: Lara Lazier <laramglazier@xxxxxxxxx> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- x86/svm_tests.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/x86/svm_tests.c b/x86/svm_tests.c index 8387bea..3937b80 100644 --- a/x86/svm_tests.c +++ b/x86/svm_tests.c @@ -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"); -- 2.31.1