On 10.02.2026 17:36, Oleksii Kurochko wrote:
> Introduce flush_tlb_guest_local() to perform a local TLB flush of the guest's
> address space for the current hart. This leverages the RISC-V HFENCE.VVMA
> instruction, which is used to invalidate translations in the VS-stage of
> address translation.
> 
> As for RISC-V binutils >= 2.39 is choosen, we can use hfence.vvma mnemonics
> instead of defining hfence.vvma using .insn.
> 
> Although it would be possible to use sbi_remote_hfence_vvma() for this 
> purpose,
> it is unnecessary in this context since the flush is required only on the
> local hart. Using the SBI call would introduce additional overhead without
> benefit, resulting in unnecessary performance loss.
> 
> Signed-off-by: Oleksii Kurochko <[email protected]>

Acked-by: Jan Beulich <[email protected]>


Reply via email to