From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, Praveen K Paladugu <prapal@microsoft.com>,
Magnus Kulke <magnuskulke@linux.microsoft.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [PATCH 2/2] monitor: generalize query-mshv/"info mshv" to query-accelerators/"info accelerators"
Date: Tue, 14 Oct 2025 09:54:08 +0100 [thread overview]
Message-ID: <aO4PsET0Hh3ljXmi@redhat.com> (raw)
In-Reply-To: <20251013112650.935921-3-pbonzini@redhat.com>
On Mon, Oct 13, 2025 at 01:26:50PM +0200, Paolo Bonzini wrote:
> The recently-introduced query-mshv command is a duplicate of query-kvm,
> and neither provides a full view of which accelerators are supported
> by a particular binary of QEMU and which is in use.
>
> KVM was the first accelerator added to QEMU, predating QOM and TYPE_ACCEL,
> so it got a pass. But now, instead of adding a badly designed copy, solve
> the problem completely for all accelerators with a command that provides
> the whole picture:
>
> >> {"execute": "query-accelerators"}
> << {"return": {"enabled": "tcg", "present": ["kvm", "mshv", "qtest", "tcg", "xen"]}}
>
> Cc: Praveen K Paladugu <prapal@microsoft.com>
> Cc: Magnus Kulke <magnuskulke@linux.microsoft.com>
> Suggested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> fixup a0df118f73f # fff
> ---
> qapi/accelerator.json | 47 +++++++++++++++++++++++++++++---------
> include/monitor/hmp.h | 2 +-
> hw/core/machine-hmp-cmds.c | 21 +++++++++--------
> hw/core/machine-qmp-cmds.c | 20 ++++++++++++----
> hmp-commands-info.hx | 15 ++++++++----
> 5 files changed, 74 insertions(+), 31 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2025-10-14 8:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 11:26 [PATCH 0/2] monitor: generalized query for accelerator availability Paolo Bonzini
2025-10-13 11:26 ` [PATCH 1/2] monitor: clarify "info accel" help message Paolo Bonzini
2025-10-14 8:50 ` Daniel P. Berrangé
2025-10-13 11:26 ` [PATCH 2/2] monitor: generalize query-mshv/"info mshv" to query-accelerators/"info accelerators" Paolo Bonzini
2025-10-14 8:54 ` Daniel P. Berrangé [this message]
2025-10-15 19:14 ` Eric Blake
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=aO4PsET0Hh3ljXmi@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=magnuskulke@linux.microsoft.com \
--cc=pbonzini@redhat.com \
--cc=prapal@microsoft.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.