Re: [PATCH v7 18/21] RISC-V: KVM: Add SBI v0.1 support

From: Andreas Schwab
Date: Thu Sep 05 2019 - 04:35:16 EST


On Sep 04 2019, Anup Patel <Anup.Patel@xxxxxxx> wrote:

> From: Atish Patra <atish.patra@xxxxxxx>
>
> The KVM host kernel running in HS-mode needs to handle SBI calls coming
> from guest kernel running in VS-mode.
>
> This patch adds SBI v0.1 support in KVM RISC-V. All the SBI calls are
> implemented correctly except remote tlb flushes. For remote TLB flushes,
> we are doing full TLB flush and this will be optimized in future.

Note that this conflicts with
https://patchwork.kernel.org/patch/11107221/ which removes <asm/sbi.h>
from <asm/tlbflush.h>. You should probably include that header
explicitly in arch/riscv/kvm/vcpu_sbi.c.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."