[GIT PULL] KVM/riscv changes for 6.17
Anup Patel
apatel at ventanamicro.com
Tue Jul 29 05:52:07 PDT 2025
On Tue, Jul 29, 2025 at 5:29 PM Paolo Bonzini <pbonzini at redhat.com> wrote:
>
> On 7/29/25 13:37, Radim Krčmář wrote:
> > Sorry, I didn't try too hard to convince others after noticing it, and
> > planned to fix the most significant breakage in later rcs.
>
> You shouldn't have to convince anyone,
> Documentation/virt/kvm/review-checklist.rst is pretty clear: new state
> must include support for save/restore, new features must default to off,
> and the feature should be testable.
>
> The file was just updated (and now makes further remarks about testing),
> but the same things were basically in the older version.
>
> So you need:
>
> - a KVM_ENABLE_CAP to enable/disable FWFT
We don't need separate KVM CAP for every SBI extension
since we already have the SBI ONE_REG interface to
enable/disable individual SBI extensions.
>
> - an ioctl to get the list of FWFT features (kind of like
> KVM_GET_MSR_INDEX_LIST on x86? It seems unlikely that you get more than
> 50 or 60)
>
> - an ioctl to enable/disable FWFT individual features
>
> - the GET/SET_ONE_REG to migrate the state etc.
>
> - selftests
>
These things need to be added anyway since we have it
for other SBI extensions.
Regards,
Anup
More information about the linux-riscv
mailing list