]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm64: vgic-its: Implement vgic_its_has_attr_regs and attr_regs_access
authorEric Auger <eric.auger@redhat.com>
Tue, 20 Dec 2016 08:33:13 +0000 (09:33 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:33:54 +0000 (14:33 +0200)
commit8331c23c28e8b7f70cb5c25366160d900ab127d7
tree0dea6ac70c5db28748e2334b42716b3286a1b2c1
parentdfc99f85c0a554b2885824654b1fc235bc4f9be9
KVM: arm64: vgic-its: Implement vgic_its_has_attr_regs and attr_regs_access

This patch implements vgic_its_has_attr_regs and vgic_its_attr_regs_access
upon the MMIO framework. VGIC ITS KVM device KVM_DEV_ARM_VGIC_GRP_ITS_REGS
group becomes functional.

At least GITS_CREADR and GITS_IIDR require to differentiate a guest write
action from a user access. As such let's introduce a new uaccess_its_write
vgic_register_region callback.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-its.c
virt/kvm/arm/vgic/vgic-mmio.h