summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSebastian Ott <sebott@redhat.com>2024-06-19 20:40:32 +0300
committerOliver Upton <oliver.upton@linux.dev>2024-06-20 20:16:44 +0300
commitf1ff3fc5209a1d63a4018bdb4231fbb073063c9a (patch)
tree979325b5d32daf698dd8a4934f2a90c5dfa1101f /scripts/generate_rust_analyzer.py
parent44241f34fac96d23cb8eac944815a1fdbf4ce523 (diff)
downloadlinux-f1ff3fc5209a1d63a4018bdb4231fbb073063c9a.tar.xz
KVM: arm64: unify code to prepare traps
There are 2 functions to calculate traps via HCR_EL2: * kvm_init_sysreg() called via KVM_RUN (before the 1st run or when the pid changes) * vcpu_reset_hcr() called via KVM_ARM_VCPU_INIT To unify these 2 and to support traps that are dependent on the ID register configuration, move the code from vcpu_reset_hcr() to sys_regs.c and call it via kvm_init_sysreg(). We still have to keep the non-FWB handling stuff in vcpu_reset_hcr(). Also the initialization with HCR_GUEST_FLAGS is kept there but guarded by !vcpu_has_run_once() to ensure that previous calculated values don't get overwritten. While at it rename kvm_init_sysreg() to kvm_calculate_traps() to better reflect what it's doing. Signed-off-by: Sebastian Ott <sebott@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20240619174036.483943-7-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions