KVM: arm/arm64: vgic-v2: Set active_source to 0 when restoring state
authorChristoffer Dall <christoffer.dall@arm.com>
Tue, 11 Dec 2018 11:51:03 +0000 (12:51 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 15:14:46 +0000 (15:14 +0000)
commit60c3ab30d8c2ff3a52606df03f05af2aae07dc6b
tree0715f085e9209502f746f5c1fbe867560ac851bb
parentd1878af3a5a6ac00bc8a3edfecf80539ee9c546e
KVM: arm/arm64: vgic-v2: Set active_source to 0 when restoring state

When restoring the active state from userspace, we don't know which CPU
was the source for the active state, and this is not architecturally
exposed in any of the register state.

Set the active_source to 0 in this case.  In the future, we can expand
on this and exposse the information as additional information to
userspace for GICv2 if anyone cares.

Cc: stable@vger.kernel.org
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-mmio.c