]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb46f67eccee1453e93ad09b0c7c1a2eac7272d8f
tree0715f085e9209502f746f5c1fbe867560ac851bb
parent58a57679c84a0fa3ce02a8cddc296dc7f2ce62fd
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