KVM: arm/arm64: Fix vGICv2 KVM_DEV_ARM_VGIC_GRP_CPU/DIST_REGS
authorEric Auger <eric.auger@redhat.com>
Mon, 18 Jul 2016 10:57:36 +0000 (10:57 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 18 Jul 2016 17:15:15 +0000 (18:15 +0100)
commit9d5fcb9dd74b5e0070ef2f66f7f4ae14a23b0206
treef212c76226e3226c0efb42abdbb5ed7cf1e7230d
parent0e4e82f154e387969ea7ecd2c8876689fb68f710
KVM: arm/arm64: Fix vGICv2 KVM_DEV_ARM_VGIC_GRP_CPU/DIST_REGS

For VGICv2 save and restore the CPU interface registers
are accessed. Restore the modality which has been altered.
Also explicitly set the iodev_type for both the DIST and CPU
interface.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-mmio-v2.c
virt/kvm/arm/vgic/vgic-mmio.c