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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:38:49 +0000 (17:38 +0100)
commit47ffaa7decc5ed224efe1da57e6d98fa451a8058
tree551c1123ce504b9e975263da5fd260f264da241d
parent6318b1b7c90cf60e2a64918734201edcc0e22b3e
KVM: arm/arm64: vgic-v2: Set active_source to 0 when restoring state

commit 60c3ab30d8c2ff3a52606df03f05af2aae07dc6b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic-mmio.c