]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Replace aia_set_hvictl() with aia_hvictl_value()
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:26 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:13:50 +0000 (16:43 +0530)
commit5d8f7ee9286e981449416ce20bba6546995f585a
tree0fc757c659abede99bbd0b1fbc85d2e87b8c8694
parent8f57adac39167de7416c7eae91b4621454def3cd
RISC-V: KVM: Replace aia_set_hvictl() with aia_hvictl_value()

The aia_set_hvictl() internally writes the HVICTL CSR which makes
it difficult to optimize the CSR write using SBI NACL extension for
kvm_riscv_vcpu_aia_update_hvip() function so replace aia_set_hvictl()
with new aia_hvictl_value() which only computes the HVICTL value.

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