]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
KVM: arm/arm64: vgic-v2: Limit ITARGETSR bits to number of VCPUs
authorAndre Przywara <andre.przywara@arm.com>
Wed, 16 Nov 2016 17:57:16 +0000 (17:57 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Dec 2016 15:46:59 +0000 (15:46 +0000)
commit266068eabb1077adf7d74a66de6610e7a6205d02
treed070029ff263a01a25fce431e08134e256c57f33
parentfd5ebf99f814fadae0dd50893699ba17e1b4af42
KVM: arm/arm64: vgic-v2: Limit ITARGETSR bits to number of VCPUs

The GICv2 spec says in section 4.3.12 that a "CPU targets field bit that
corresponds to an unimplemented CPU interface is RAZ/WI."
Currently we allow the guest to write any value in there and it can
read that back.
Mask the written value with the proper CPU mask to be spec compliant.

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