summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorRaghavendra Rao Ananta <rananta@google.com>2023-07-19 20:54:00 +0300
committerOliver Upton <oliver.upton@linux.dev>2023-07-20 20:16:56 +0300
commitc718ca0e99401d80d2480c08e1b02cf5f7cd7033 (patch)
tree9137f33e2c458af2bf9108e82f99f7027c9939bc /scripts/gdb/linux/utils.py
parent84f68679032147dcdac9bb4d8eb8f4638e995dc6 (diff)
downloadlinux-c718ca0e99401d80d2480c08e1b02cf5f7cd7033.tar.xz
KVM: arm64: Fix hardware enable/disable flows for pKVM
When running in protected mode, the hyp stub is disabled after pKVM is initialized, meaning the host cannot enable/disable the hyp at runtime. As such, kvm_arm_hardware_enabled is always 1 after initialization, and kvm_arch_hardware_enable() never enables the vgic maintenance irq or timer irqs. Unconditionally enable/disable the vgic + timer irqs in the respective calls, instead relying on the percpu bookkeeping in the generic code to keep track of which cpus have the interrupts unmasked. Fixes: 466d27e48d7c ("KVM: arm64: Simplify the CPUHP logic") Reported-by: Oliver Upton <oliver.upton@linux.dev> Suggested-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Raghavendra Rao Ananta <rananta@google.com> Link: https://lore.kernel.org/r/20230719175400.647154-1-rananta@google.com Acked-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions