diff options
author | Marc Zyngier <maz@kernel.org> | 2024-06-14 17:45:51 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-06-19 11:14:38 +0300 |
commit | 5d476ca57d7d1fb6a5a39e46747bb2034190ee4a (patch) | |
tree | c9b28edc0da8dfc52b0876fa93d31c703fa3ff9f /scripts/generate_rust_analyzer.py | |
parent | 0cb8aae2267687a13e22cf906d1ee1e9840bbe27 (diff) | |
download | linux-5d476ca57d7d1fb6a5a39e46747bb2034190ee4a.tar.xz |
KVM: arm64: nv: Add handling of range-based TLBI operations
We already support some form of range operation by handling FEAT_TTL,
but so far the "arbitrary" range operations are unsupported.
Let's fix that.
For EL2 S1, this is simple enough: we just map both NSH, ISH and OSH
instructions onto the ISH version for EL1.
For TLBI instructions affecting EL1 S1, we use the same model as
their non-range counterpart to invalidate in the context of the
correct VMID.
For TLBI instructions affecting S2, we interpret the data passed
by the guest to compute the range and use that to tear-down part
of the shadow S2 range and invalidate the TLBs.
Finally, we advertise FEAT_TLBIRANGE if the host supports it.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240614144552.2773592-16-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions