]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Add vmid field to struct kvm_riscv_hfence
authorAnup Patel <apatel@ventanamicro.com>
Wed, 18 Jun 2025 11:35:30 +0000 (17:05 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Jul 2025 16:57:27 +0000 (22:27 +0530)
commit4c933f3a39ded0df1d727069dbe28bbb460b32ec
treea979e5cc867ecf3b52adcf46425a3c44416dc2cd
parentf035b44b518c300d51d36057867d615a30d43cb8
RISC-V: KVM: Add vmid field to struct kvm_riscv_hfence

Currently, the struct kvm_riscv_hfence does not have vmid field
and various hfence processing functions always pick vmid assigned
to the guest/VM. This prevents us from doing hfence operation on
arbitrary vmid hence add vmid field to struct kvm_riscv_hfence
and use it wherever applicable.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com>
Link: https://lore.kernel.org/r/20250618113532.471448-11-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_tlb.h
arch/riscv/kvm/tlb.c