* [PATCH] monitor: disable "info kvm" if !KVM
@ 2026-01-05 3:43 Bin Guo
2026-01-05 10:37 ` Daniel P. Berrangé
0 siblings, 1 reply; 7+ messages in thread
From: Bin Guo @ 2026-01-05 3:43 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, berrange, philmd
Signed-off-by: Bin Guo <guobin@linux.alibaba.com>
---
hmp-commands-info.hx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index 41674dcbe1..1927649493 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -294,6 +294,7 @@ SRST
being coalesced.
ERST
+#if defined(CONFIG_KVM)
{
.name = "kvm",
.args_type = "",
@@ -301,6 +302,7 @@ ERST
.help = "show KVM information",
.cmd = hmp_info_kvm,
},
+#endif
SRST
``info kvm``
--
2.50.1 (Apple Git-155)
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-05 3:43 [PATCH] monitor: disable "info kvm" if !KVM Bin Guo
@ 2026-01-05 10:37 ` Daniel P. Berrangé
2026-01-07 9:40 ` Bin Guo
0 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrangé @ 2026-01-05 10:37 UTC (permalink / raw)
To: Bin Guo; +Cc: qemu-devel, pbonzini, philmd
On Mon, Jan 05, 2026 at 11:43:09AM +0800, Bin Guo wrote:
Missing commit message explaining why we should do this ?
The 'hmp_info_kvm' implementation is unconditionally built and this patch
isn't changing that, so this result in building unused code.
Conceptually even if KVM is not built, it makes sense to have an
'info kvm' command to tell the user that KVM is not available.
> Signed-off-by: Bin Guo <guobin@linux.alibaba.com>
> ---
> hmp-commands-info.hx | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
> index 41674dcbe1..1927649493 100644
> --- a/hmp-commands-info.hx
> +++ b/hmp-commands-info.hx
> @@ -294,6 +294,7 @@ SRST
> being coalesced.
> ERST
>
> +#if defined(CONFIG_KVM)
> {
> .name = "kvm",
> .args_type = "",
> @@ -301,6 +302,7 @@ ERST
> .help = "show KVM information",
> .cmd = hmp_info_kvm,
> },
> +#endif
>
> SRST
> ``info kvm``
> --
> 2.50.1 (Apple Git-155)
>
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 :|
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-05 10:37 ` Daniel P. Berrangé
@ 2026-01-07 9:40 ` Bin Guo
2026-01-08 7:57 ` Markus Armbruster
0 siblings, 1 reply; 7+ messages in thread
From: Bin Guo @ 2026-01-07 9:40 UTC (permalink / raw)
To: berrange; +Cc: qemu-devel, pbonzini, philmd
Daniel P. Berrangé wrote on Mon, 5 Jan 2026 10:37:16 +0000:
> Missing commit message explaining why we should do this ?
The reason for submitting this patch is that the newly supported
'info accelerators' command can provide a more comprehensive view
of the accelerator's status.
>
> The 'hmp_info_kvm' implementation is unconditionally built and this patch
> isn't changing that, so this result in building unused code.
>
> Conceptually even if KVM is not built, it makes sense to have an
> 'info kvm' command to tell the user that KVM is not available.
I agree with you, we can skip this patch.
With regards,
Bin Guo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-07 9:40 ` Bin Guo
@ 2026-01-08 7:57 ` Markus Armbruster
2026-01-08 9:46 ` Daniel P. Berrangé
0 siblings, 1 reply; 7+ messages in thread
From: Markus Armbruster @ 2026-01-08 7:57 UTC (permalink / raw)
To: Bin Guo; +Cc: berrange, qemu-devel, pbonzini, philmd
Bin Guo <guobin@linux.alibaba.com> writes:
> Daniel P. Berrangé wrote on Mon, 5 Jan 2026 10:37:16 +0000:
>
>> Missing commit message explaining why we should do this ?
>
> The reason for submitting this patch is that the newly supported
> 'info accelerators' command can provide a more comprehensive view
> of the accelerator's status.
Should we deprecate "info kvm"?
[...]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-08 7:57 ` Markus Armbruster
@ 2026-01-08 9:46 ` Daniel P. Berrangé
2026-01-08 11:35 ` Markus Armbruster
0 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrangé @ 2026-01-08 9:46 UTC (permalink / raw)
To: Markus Armbruster; +Cc: Bin Guo, qemu-devel, pbonzini, philmd
On Thu, Jan 08, 2026 at 08:57:59AM +0100, Markus Armbruster wrote:
> Bin Guo <guobin@linux.alibaba.com> writes:
>
> > Daniel P. Berrangé wrote on Mon, 5 Jan 2026 10:37:16 +0000:
> >
> >> Missing commit message explaining why we should do this ?
> >
> > The reason for submitting this patch is that the newly supported
> > 'info accelerators' command can provide a more comprehensive view
> > of the accelerator's status.
>
> Should we deprecate "info kvm"?
Conceptually it is certainly redundant, and for HMP we offer no long
term stability promise. Is the benefiting of deprecating and then
removing it, worth the inconvenience we'll cause ?
Perhaps the more important Q first is whether we should deprecate
query-kvm in QMP ?
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 :|
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-08 9:46 ` Daniel P. Berrangé
@ 2026-01-08 11:35 ` Markus Armbruster
2026-01-08 11:38 ` Daniel P. Berrangé
0 siblings, 1 reply; 7+ messages in thread
From: Markus Armbruster @ 2026-01-08 11:35 UTC (permalink / raw)
To: Daniel P. Berrangé; +Cc: Bin Guo, qemu-devel, pbonzini, philmd
Daniel P. Berrangé <berrange@redhat.com> writes:
> On Thu, Jan 08, 2026 at 08:57:59AM +0100, Markus Armbruster wrote:
>> Bin Guo <guobin@linux.alibaba.com> writes:
>>
>> > Daniel P. Berrangé wrote on Mon, 5 Jan 2026 10:37:16 +0000:
>> >
>> >> Missing commit message explaining why we should do this ?
>> >
>> > The reason for submitting this patch is that the newly supported
>> > 'info accelerators' command can provide a more comprehensive view
>> > of the accelerator's status.
>>
>> Should we deprecate "info kvm"?
>
> Conceptually it is certainly redundant, and for HMP we offer no long
> term stability promise. Is the benefiting of deprecating and then
> removing it, worth the inconvenience we'll cause ?
>
> Perhaps the more important Q first is whether we should deprecate
> query-kvm in QMP ?
Yes.
"info kvm" is a thin wrapper around query-kvm. We should either keep
both or neither.
What should management applications use, query-kvm or
query-accelerators?
If our answer is query-accelerators, we should guide them by deprecating
query-kvm now. This doesn't mean we must delete it as soon as the
deprecation grace period ends.
If our answer is "we don't care", we can keep query-kvm.
If our answer is query-kvm, adding query-accelerators was a mistake.
But I don't think it is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] monitor: disable "info kvm" if !KVM
2026-01-08 11:35 ` Markus Armbruster
@ 2026-01-08 11:38 ` Daniel P. Berrangé
0 siblings, 0 replies; 7+ messages in thread
From: Daniel P. Berrangé @ 2026-01-08 11:38 UTC (permalink / raw)
To: Markus Armbruster; +Cc: Bin Guo, qemu-devel, pbonzini, philmd
On Thu, Jan 08, 2026 at 12:35:07PM +0100, Markus Armbruster wrote:
> Daniel P. Berrangé <berrange@redhat.com> writes:
>
> > On Thu, Jan 08, 2026 at 08:57:59AM +0100, Markus Armbruster wrote:
> >> Bin Guo <guobin@linux.alibaba.com> writes:
> >>
> >> > Daniel P. Berrangé wrote on Mon, 5 Jan 2026 10:37:16 +0000:
> >> >
> >> >> Missing commit message explaining why we should do this ?
> >> >
> >> > The reason for submitting this patch is that the newly supported
> >> > 'info accelerators' command can provide a more comprehensive view
> >> > of the accelerator's status.
> >>
> >> Should we deprecate "info kvm"?
> >
> > Conceptually it is certainly redundant, and for HMP we offer no long
> > term stability promise. Is the benefiting of deprecating and then
> > removing it, worth the inconvenience we'll cause ?
> >
> > Perhaps the more important Q first is whether we should deprecate
> > query-kvm in QMP ?
>
> Yes.
>
> "info kvm" is a thin wrapper around query-kvm. We should either keep
> both or neither.
>
> What should management applications use, query-kvm or
> query-accelerators?
Functionally it doesn't matter which they use if they care about KVM
state.
Conceptually we want them to prefer the latter since it means their
code is more portable to other accelerators QEMU has.
>
> If our answer is query-accelerators, we should guide them by deprecating
> query-kvm now. This doesn't mean we must delete it as soon as the
> deprecation grace period ends.
>
> If our answer is "we don't care", we can keep query-kvm.
>
> If our answer is query-kvm, adding query-accelerators was a mistake.
> But I don't think it is.
Yeah, feels like we want the query-kvm deprecation.
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 :|
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-01-08 11:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 3:43 [PATCH] monitor: disable "info kvm" if !KVM Bin Guo
2026-01-05 10:37 ` Daniel P. Berrangé
2026-01-07 9:40 ` Bin Guo
2026-01-08 7:57 ` Markus Armbruster
2026-01-08 9:46 ` Daniel P. Berrangé
2026-01-08 11:35 ` Markus Armbruster
2026-01-08 11:38 ` Daniel P. Berrangé
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.