diff options
| author | Marc Zyngier <[email protected]> | 2023-08-15 18:39:01 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2023-08-17 09:00:28 +0000 |
| commit | a63cf31139b7f41d468dc8ef63dbf6bae213d960 (patch) | |
| tree | 7341a9666010ea47e1c224586b01f982db54da06 /tools/perf/scripts/python/flamegraph.py | |
| parent | KVM: arm64: nv: Expose FGT to nested guests (diff) | |
| download | kernel-a63cf31139b7f41d468dc8ef63dbf6bae213d960.tar.gz kernel-a63cf31139b7f41d468dc8ef63dbf6bae213d960.zip | |
KVM: arm64: Move HCRX_EL2 switch to load/put on VHE systems
Although the nVHE behaviour requires HCRX_EL2 to be switched
on each switch between host and guest, there is nothing in
this register that would affect a VHE host.
It is thus possible to save/restore this register on load/put
on VHE systems, avoiding unnecessary sysreg access on the hot
path. Additionally, it avoids unnecessary traps when running
with NV.
To achieve this, simply move the read/writes to the *_common()
helpers, which are called on load/put on VHE, and more eagerly
on nVHE.
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Reviewed-by: Jing Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
