From: Paolo Bonzini <pbonzini@redhat.com>
To: "Radim Krčmář" <rkrcmar@ventanamicro.com>,
"Anup Patel" <apatel@ventanamicro.com>
Cc: Anup Patel <anup@brainfault.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Andrew Jones <ajones@ventanamicro.com>,
Atish Patra <atishp@rivosinc.com>,
Atish Patra <atish.patra@linux.dev>,
"open list:KERNEL VIRTUAL MACHINE FOR RISC-V (KVM/riscv)"
<kvm-riscv@lists.infradead.org>,
KVM General <kvm@vger.kernel.org>,
linux-riscv <linux-riscv@lists.infradead.org>,
linux-riscv <linux-riscv-bounces@lists.infradead.org>
Subject: Re: [GIT PULL] KVM/riscv changes for 6.17
Date: Tue, 29 Jul 2025 13:58:54 +0200 [thread overview]
Message-ID: <a486e649-d2c0-471c-87f2-c7a01dff9ae4@redhat.com> (raw)
In-Reply-To: <DBOIBORLK6YM.7SND5YPEJR60@ventanamicro.com>
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
- 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
> (If FWFT wasn't enabled by default, sane userspace just wouldn't expose
> FWFT to the guest until a proper KVM configuration was added).
That means that the bare minimum for inclusion in KVM is the first three
bullets above. But at this point, leaving out the fourth is just
sloppy; and tests are not really optional unless you have already posted
a userspace implementation.
Thanks,
Paolo
next prev parent reply other threads:[~2025-07-29 11:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 12:06 [GIT PULL] KVM/riscv changes for 6.17 Anup Patel
2025-07-28 15:02 ` Paolo Bonzini
2025-07-28 15:52 ` Paolo Bonzini
2025-07-28 15:55 ` Anup Patel
2025-07-28 16:12 ` Paolo Bonzini
2025-07-28 16:20 ` Anup Patel
2025-07-28 16:50 ` Paolo Bonzini
2025-07-28 16:53 ` Anup Patel
2025-07-29 11:37 ` Radim Krčmář
2025-07-29 11:58 ` Paolo Bonzini [this message]
2025-07-29 12:52 ` Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a486e649-d2c0-471c-87f2-c7a01dff9ae4@redhat.com \
--to=pbonzini@redhat.com \
--cc=ajones@ventanamicro.com \
--cc=anup@brainfault.org \
--cc=apatel@ventanamicro.com \
--cc=atish.patra@linux.dev \
--cc=atishp@rivosinc.com \
--cc=kvm-riscv@lists.infradead.org \
--cc=kvm@vger.kernel.org \
--cc=linux-riscv-bounces@lists.infradead.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=rkrcmar@ventanamicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).