diff options
| author | Anup Patel <[email protected]> | 2025-06-18 11:35:28 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-07-28 16:57:23 +0000 |
| commit | 4ecbd3eb5b1ba41db8f39d9cd4d20440e88482fa (patch) | |
| tree | 32e733261860e91cbabcb49166be3e58b988486c /arch/riscv/kvm/vcpu_exit.c | |
| parent | RISC-V: KVM: Use ncsr_xyz() in kvm_riscv_vcpu_trap_redirect() (diff) | |
| download | kernel-4ecbd3eb5b1ba41db8f39d9cd4d20440e88482fa.tar.gz kernel-4ecbd3eb5b1ba41db8f39d9cd4d20440e88482fa.zip | |
RISC-V: KVM: Factor-out MMU related declarations into separate headers
The MMU, TLB, and VMID management for KVM RISC-V already exists as
seprate sources so create separate headers along these lines. This
further simplifies asm/kvm_host.h header.
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Tested-by: Atish Patra <[email protected]>
Reviewed-by: Nutty Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'arch/riscv/kvm/vcpu_exit.c')
| -rw-r--r-- | arch/riscv/kvm/vcpu_exit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kvm/vcpu_exit.c b/arch/riscv/kvm/vcpu_exit.c index 85c43c83e3b9..965df528de90 100644 --- a/arch/riscv/kvm/vcpu_exit.c +++ b/arch/riscv/kvm/vcpu_exit.c @@ -9,6 +9,7 @@ #include <linux/kvm_host.h> #include <asm/csr.h> #include <asm/insn-def.h> +#include <asm/kvm_mmu.h> #include <asm/kvm_nacl.h> static int gstage_page_fault(struct kvm_vcpu *vcpu, struct kvm_run *run, |
