Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: selftests: Clarify that arm64's inject_uer() takes a host PA, not a guest PA

Rename inject_uer()'s @paddr to @hpa to make it more obvious that it
injects an error using a host PA, not a guest PA.

No functional change intended.

Link: https://patch.msgid.link/20260420212004.3938325-16-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>

+2 -2
+2 -2
tools/testing/selftests/kvm/arm64/sea_to_user.c
··· 93 93 ksft_exit_fail_perror("Failed to write EINJ entry"); 94 94 } 95 95 96 - static void inject_uer(u64 paddr) 96 + static void inject_uer(u64 hpa) 97 97 { 98 98 if (access("/sys/firmware/acpi/tables/EINJ", R_OK) == -1) 99 99 ksft_test_result_skip("EINJ table no available in firmware"); ··· 103 103 104 104 write_einj_entry(EINJ_ETYPE, ERROR_TYPE_MEMORY_UER); 105 105 write_einj_entry(EINJ_FLAGS, MASK_MEMORY_UER); 106 - write_einj_entry(EINJ_ADDR, paddr); 106 + write_einj_entry(EINJ_ADDR, hpa); 107 107 write_einj_entry(EINJ_MASK, ~0x0UL); 108 108 write_einj_entry(EINJ_NOTRIGGER, 1); 109 109 write_einj_entry(EINJ_DOIT, 1);