Re: [PATCH 05/27] RISC-V: KVM: Factor-out ISA checks into separate sources
From: Anup Patel
Date: Fri Apr 03 2026 - 08:40:10 EST
On Fri, Mar 13, 2026 at 7:44 PM Radim Krčmář
<radim.krcmar@xxxxxxxxxxxxxxxx> wrote:
>
> 2026-01-20T13:29:51+05:30, Anup Patel <anup.patel@xxxxxxxxxxxxxxxx>:
> > The KVM ISA extension related checks are not VCPU specific and
> > should be factored out of vcpu_onereg.c into separate sources.
> >
> > Signed-off-by: Anup Patel <anup.patel@xxxxxxxxxxxxxxxx>
> > ---
> > diff --git a/arch/riscv/kvm/aia_device.c b/arch/riscv/kvm/aia_device.c
> > @@ -12,6 +12,7 @@
> > #include <linux/kvm_host.h>
> > #include <linux/uaccess.h>
> > #include <linux/cpufeature.h>
> > +#include <asm/kvm_isa.h>
>
> I guess <cpufeature.h> isn't needed anymore,
Okay, I will drop this include at the time of merging this patch.
>
> Reviewed-by: Radim Krčmář <radim.krcmar@xxxxxxxxxxxxxxxx>
Regards,
Anup