]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic-new: Add ACTIVE registers handlers
authorAndre Przywara <andre.przywara@arm.com>
Tue, 1 Dec 2015 12:40:58 +0000 (12:40 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:52 +0000 (15:39 +0200)
commit8dca1b71af2d48d1877033856873385ba46bd86f
treefb82497302cd793568e24f7703beed1a2c3cea51
parentaedf32e17386a8fd26547e57a166d98f3898ae60
KVM: arm/arm64: vgic-new: Add ACTIVE registers handlers

The active register handlers are shared between the v2 and v3
emulation, so their implementation goes into vgic-mmio.c, to be
easily referenced from the v3 emulation as well later.
Since activation/deactivation of an interrupt may happen entirely
in the guest without it ever exiting, we need some extra logic to
properly track the active state.
For clearing the active state, we basically have to halt the guest to
make sure this is properly propagated into the respective VCPUs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
virt/kvm/arm/vgic/vgic-mmio-v2.c
virt/kvm/arm/vgic/vgic-mmio.c
virt/kvm/arm/vgic/vgic-mmio.h