diff options
| author | Marc Zyngier <maz@kernel.org> | 2026-10-15 11:05:35 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-15 14:52:24 +0100 |
| commit | 22b6557ad05bf05c73246f62c19af3e04017270e (patch) | |
| tree | 077425421cd4ae67fd2a57e63c69eb52c29952e0 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 1d4ce2901f1e25b06d447c0b02d105d6dd3550d8 (diff) | |
KVM: arm64: Move IN_GUEST_MODE ahead of state being loaded
IN_GUEST_MODE is advertised too late, when state has already been moved
onto CPU registers and cannot be observed by another CPU anymore.
Move the IN_GUEST_MODE publication ahead of the state being loaded, and
immediately check for pending request. This ensures that there is no
window of opportunity for another CPU to observe OUTSIDE_GUEST_MODE and
yet for state to be loaded.
This also simplifies the "state rollback", which solely amounts to
synchronising the timer when no irqchip is present.
Cc: stable@vger.kernel.org
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261015100539.1011760-4-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
