summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator_test.rs
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2025-09-08 17:35:57 +0100
committerOliver Upton <oliver.upton@linux.dev>2025-09-10 02:56:20 -0700
commit2dc720e606319eae6990c31b7cc8fd188f442ce4 (patch)
tree0f86787ac8b99a82c4ff5a708656e1c81a2b1b21 /rust/kernel/alloc/allocator_test.rs
parentebb2d8fd81b82c8a57f88add118108b1c4408670 (diff)
KVM: arm64: Fix parameter ordering for VBAR_EL1 assignment
The __vcpu_assign_sys_reg() helper expects the register ID as the second argument and the value to be assigned as the third. However, the existing code was passing these parameters in the incorrect order. Fix the function call to properly read the live value of VBAR_EL1 from the guest and update the vCPU value immediately before pending the exception. This ensures the vCPU's value is the same as the guest's and that the exception will be handled at the correct address upon resuming the guest. Fixes: 798eb5978700 ("KVM: arm64: Sync protected guest VBAR_EL1 on injecting an undef exception") Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20250908163557.2419780-1-tabba@google.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/kernel/alloc/allocator_test.rs')
0 files changed, 0 insertions, 0 deletions