mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 17:12:50 -04:00
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>
This commit is contained in:
@@ -93,7 +93,7 @@ static void write_einj_entry(const char *einj_path, u64 val)
|
||||
ksft_exit_fail_perror("Failed to write EINJ entry");
|
||||
}
|
||||
|
||||
static void inject_uer(u64 paddr)
|
||||
static void inject_uer(u64 hpa)
|
||||
{
|
||||
if (access("/sys/firmware/acpi/tables/EINJ", R_OK) == -1)
|
||||
ksft_test_result_skip("EINJ table no available in firmware");
|
||||
@@ -103,7 +103,7 @@ static void inject_uer(u64 paddr)
|
||||
|
||||
write_einj_entry(EINJ_ETYPE, ERROR_TYPE_MEMORY_UER);
|
||||
write_einj_entry(EINJ_FLAGS, MASK_MEMORY_UER);
|
||||
write_einj_entry(EINJ_ADDR, paddr);
|
||||
write_einj_entry(EINJ_ADDR, hpa);
|
||||
write_einj_entry(EINJ_MASK, ~0x0UL);
|
||||
write_einj_entry(EINJ_NOTRIGGER, 1);
|
||||
write_einj_entry(EINJ_DOIT, 1);
|
||||
|
||||
Reference in New Issue
Block a user