]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: GICv4.1: Reload VLPI configuration on distributor enable/disable
authorMarc Zyngier <maz@kernel.org>
Wed, 4 Mar 2020 20:33:28 +0000 (20:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 24 Mar 2020 12:15:51 +0000 (12:15 +0000)
commitdb75ae51a422ecc495da129feb446b8d95cd19d6
treed4d6b6c91e5c80683c188f238ac37f0c0aa61cea
parent9a64b287ff33c2cf720ad0b4a9be14a2af5f94b3
KVM: arm64: GICv4.1: Reload VLPI configuration on distributor enable/disable

Each time a Group-enable bit gets flipped, the state of these bits
needs to be forwarded to the hardware. This is a pretty heavy
handed operation, requiring all vcpus to reload their GICv4
configuration. It is thus implemented as a new request type.

These enable bits are programmed into the HW by setting the VGrp{0,1}En
fields of GICR_VPENDBASER when the vPEs are made resident again.

Of course, we only support Group-1 for now...

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20200304203330.4967-22-maz@kernel.org
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
virt/kvm/arm/arm.c
virt/kvm/arm/vgic/vgic-mmio-v3.c