diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-05-16 10:44:39 +0300 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-05-23 13:48:11 +0300 |
commit | 3197191e5525ea7cf8b3fdd9afc75ab5779d21fd (patch) | |
tree | 7e949a0bcb08fce173016459b4e52bee19249b67 /virt/kvm/arm/vgic/vgic-mmio.h | |
parent | 2602087ef49d8081ece54019aa862dbb12a04806 (diff) | |
download | linux-3197191e5525ea7cf8b3fdd9afc75ab5779d21fd.tar.xz |
KVM: arm/arm64: Separate guest and uaccess writes to dist {sc}active
Factor out the core register modifier functionality from the entry
points from the register description table, and only call the
prepare/finish functions from the guest path, not the uaccess path.
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-mmio.h')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-mmio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic/vgic-mmio.h b/virt/kvm/arm/vgic/vgic-mmio.h index 27924a3d8769..5693f6df45ec 100644 --- a/virt/kvm/arm/vgic/vgic-mmio.h +++ b/virt/kvm/arm/vgic/vgic-mmio.h @@ -167,6 +167,14 @@ void vgic_mmio_write_sactive(struct kvm_vcpu *vcpu, gpa_t addr, unsigned int len, unsigned long val); +void vgic_mmio_uaccess_write_cactive(struct kvm_vcpu *vcpu, + gpa_t addr, unsigned int len, + unsigned long val); + +void vgic_mmio_uaccess_write_sactive(struct kvm_vcpu *vcpu, + gpa_t addr, unsigned int len, + unsigned long val); + unsigned long vgic_mmio_read_priority(struct kvm_vcpu *vcpu, gpa_t addr, unsigned int len); |