]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: arm/arm64: vgic-new: Add GICH_VMCR accessors
authorAndre Przywara <andre.przywara@arm.com>
Thu, 3 Dec 2015 11:47:37 +0000 (11:47 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:40:04 +0000 (15:40 +0200)
commite4823a7a1b4a4f2549dd223f243779ab9510db22
tree59adbfb70277846ebeffc8666964028abaec03c0
parent7d450e2821710718fd6703e9c486249cee913bab
KVM: arm/arm64: vgic-new: Add GICH_VMCR accessors

Since the GIC CPU interface is always virtualized by the hardware,
we don't have CPU interface state information readily available in our
emulation if userland wants to save or restore it.
Fortunately the GIC hypervisor interface provides the VMCR register to
access the required virtual CPU interface bits.
Provide wrappers for GICv2 and GICv3 hosts to have access to this
register.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.h