diff options
author | Christoffer Dall <[email protected]> | 2023-02-09 17:58:20 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-02-11 10:13:30 +0000 |
commit | 191e0e155521182051fc2f32dde237b6fde2b0b4 (patch) | |
tree | ee99d2b595ccd538d2637740e317eccc533145d5 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9f75b6d447d712b6ed9abc869eedf456fe7f5e9b (diff) |
KVM: arm64: nv: Only toggle cache for virtual EL2 when SCTLR_EL2 changes
So far we were flushing almost the entire universe whenever a VM would
load/unload the SCTLR_EL1 and the two versions of that register had
different MMU enabled settings. This turned out to be so slow that it
prevented forward progress for a nested VM, because a scheduler timer
tick interrupt would always be pending when we reached the nested VM.
To avoid this problem, we consider the SCTLR_EL2 when evaluating if
caches are on or off when entering virtual EL2 (because this is the
value that we end up shadowing onto the hardware EL1 register).
Reviewed-by: Alexandru Elisei <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Signed-off-by: Jintack Lim <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions