]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Use nacl_csr_xyz() for accessing AIA CSRs
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:31 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:14:01 +0000 (16:44 +0530)
commitdab55604aec572cfa2bc6b51be288da1ac4c7366
tree45eae622feb9f21c4a926cba7870e1b238f92a70
parente28e6b69767b3aea73eda0fd3e7b4e1c15a7ebec
RISC-V: KVM: Use nacl_csr_xyz() for accessing AIA CSRs

When running under some other hypervisor, prefer nacl_csr_xyz()
for accessing AIA CSRs in the run-loop. This makes CSR access
faster whenever SBI nested acceleration is available.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241020194734.58686-11-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/aia.c