diff options
author | 2024-12-18 19:40:50 +0000 | |
---|---|---|
committer | 2024-12-20 09:44:00 +0000 | |
commit | f7d03fcbf1f482069e9afac55b17de3bd323b8f6 (patch) | |
tree | 41f6ff002e20f539dfb972f799a061366ec2560f /scripts/generate_rust_analyzer.py | |
parent | KVM: arm64: Add {get,put}_pkvm_hyp_vm() helpers (diff) | |
download | wireguard-linux-f7d03fcbf1f482069e9afac55b17de3bd323b8f6.tar.xz wireguard-linux-f7d03fcbf1f482069e9afac55b17de3bd323b8f6.zip |
KVM: arm64: Introduce __pkvm_vcpu_{load,put}()
Rather than look-up the hyp vCPU on every run hypercall at EL2,
introduce a per-CPU 'loaded_hyp_vcpu' tracking variable which is updated
by a pair of load/put hypercalls called directly from
kvm_arch_vcpu_{load,put}() when pKVM is enabled.
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20241218194059.3670226-10-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