diff options
author | 2025-02-07 14:54:37 +0000 | |
---|---|---|
committer | 2025-02-09 10:20:38 +0000 | |
commit | c53fbdb60fb61fd6bda2bc0dc89837966625c5dc (patch) | |
tree | 1ef0e923b101372461b674911d301bf72fa00f73 /scripts/generate_rust_analyzer.py | |
parent | KVM: arm64: timer: Don't adjust the EL2 virtual timer offset (diff) | |
download | wireguard-linux-c53fbdb60fb61fd6bda2bc0dc89837966625c5dc.tar.xz wireguard-linux-c53fbdb60fb61fd6bda2bc0dc89837966625c5dc.zip |
KVM: arm64: Improve error handling from check_host_shared_guest()
The check_host_shared_guest() path expects to find a last-level valid
PTE in the guest's stage-2 page-table. However, it checks the PTE's
level before its validity, which makes it hard for callers to figure out
what went wrong.
To make error handling simpler, check the PTE's validity first.
Signed-off-by: Quentin Perret <qperret@google.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250207145438.1333475-2-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions