diff options
author | Marc Zyngier <maz@kernel.org> | 2020-04-06 18:21:20 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-04-22 19:13:16 +0300 |
commit | 9a50ebbffa9862db7604345f5fd763122b0f6fed (patch) | |
tree | 9b17d206d5214da49e312fcdb325d9501429ef8c /drivers/ps3/ps3av_cmd.c | |
parent | 1c32ca5dc6d00012f0c964e5fdd7042fcc71efb1 (diff) | |
download | linux-9a50ebbffa9862db7604345f5fd763122b0f6fed.tar.xz |
KVM: arm: vgic: Synchronize the whole guest on GIC{D,R}_I{S,C}ACTIVER read
When a guest tries to read the active state of its interrupts,
we currently just return whatever state we have in memory. This
means that if such an interrupt lives in a List Register on another
CPU, we fail to obsertve the latest active state for this interrupt.
In order to remedy this, stop all the other vcpus so that they exit
and we can observe the most recent value for the state. This is
similar to what we are doing for the write side of the same
registers, and results in new MMIO handlers for userspace (which
do not need to stop the guest, as it is supposed to be stopped
already).
Reported-by: Julien Grall <julien@xen.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'drivers/ps3/ps3av_cmd.c')
0 files changed, 0 insertions, 0 deletions