]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: arm/arm64: Reset mapped IRQs on VM reset
authorChristoffer Dall <cdall@kernel.org>
Mon, 5 Mar 2018 10:36:38 +0000 (11:36 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 14 Mar 2018 18:29:14 +0000 (18:29 +0000)
commit413aa807ae39fed7e387c175d2d0ae9fcf6c0c9d
treeb1a6f9ebd348103896f0e9c153d37341475f5b67
parente21a4f3a930cda6e4902cb5b3213365e5ff3ce7c
KVM: arm/arm64: Reset mapped IRQs on VM reset

We currently don't allow resetting mapped IRQs from userspace, because
their state is controlled by the hardware.  But we do need to reset the
state when the VM is reset, so we provide a function for the 'owner' of
the mapped interrupt to reset the interrupt state.

Currently only the timer uses mapped interrupts, so we call this
function from the timer reset logic.

Cc: stable@vger.kernel.org
Fixes: 4c60e360d6df ("KVM: arm/arm64: Provide a get_input_level for the arch timer")
Signed-off-by: Christoffer Dall <cdall@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/vgic/vgic.c