qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
@ 2009-07-29 11:03 Bjørn Mork
  2009-07-29 18:48 ` Luiz Capitulino
  2009-07-29 20:58 ` Anthony Liguori
  0 siblings, 2 replies; 6+ messages in thread
From: Bjørn Mork @ 2009-07-29 11:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: Bjørn Mork

There isn't a one-to-one mapping between the KVM version and
the QEMU version output from "info version".  Complete the
picture by adding the KVM version to the existing "info kvm"
monitor command.

 (qemu) info kvm
 kvm support: enabled
 kvm version: kvm-85

Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
 monitor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/monitor.c b/monitor.c
index 99c174c..53463e9 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1428,6 +1428,7 @@ static void do_info_kvm(Monitor *mon)
         monitor_printf(mon, "enabled\n");
     else
         monitor_printf(mon, "disabled\n");
+    monitor_printf(mon, "kvm version: "  KVM_VERSION "\n");
 #else
     monitor_printf(mon, "kvm support: not compiled\n");
 #endif
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
  2009-07-29 11:03 [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command Bjørn Mork
@ 2009-07-29 18:48 ` Luiz Capitulino
  2009-07-29 20:48   ` Glauber Costa
  2009-07-29 20:58 ` Anthony Liguori
  1 sibling, 1 reply; 6+ messages in thread
From: Luiz Capitulino @ 2009-07-29 18:48 UTC (permalink / raw)
  To: Bjørn Mork; +Cc: qemu-devel

On Wed, 29 Jul 2009 13:03:38 +0200
Bjørn Mork <bjorn@mork.no> wrote:

> There isn't a one-to-one mapping between the KVM version and
> the QEMU version output from "info version".  Complete the
> picture by adding the KVM version to the existing "info kvm"
> monitor command.
> 
>  (qemu) info kvm
>  kvm support: enabled
>  kvm version: kvm-85

 Doesn't seem a good idea, as this is considered a stable protocol.

 Either, we should check current users or add 'info kvm-version'.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
  2009-07-29 18:48 ` Luiz Capitulino
@ 2009-07-29 20:48   ` Glauber Costa
  2009-07-29 21:23     ` Luiz Capitulino
  0 siblings, 1 reply; 6+ messages in thread
From: Glauber Costa @ 2009-07-29 20:48 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: qemu-devel, Bjørn Mork

On Wed, Jul 29, 2009 at 3:48 PM, Luiz Capitulino<lcapitulino@redhat.com> wrote:
> On Wed, 29 Jul 2009 13:03:38 +0200
> Bjørn Mork <bjorn@mork.no> wrote:
>
>> There isn't a one-to-one mapping between the KVM version and
>> the QEMU version output from "info version".  Complete the
>> picture by adding the KVM version to the existing "info kvm"
>> monitor command.
>>
>>  (qemu) info kvm
>>  kvm support: enabled
>>  kvm version: kvm-85
>
>  Doesn't seem a good idea, as this is considered a stable protocol.
>
>  Either, we should check current users or add 'info kvm-version'.

can't see why. We recently added information to info migrate, and many others.
If we are using a new line, shouldn't matter, since it is expected that parsers
for those things would be line based.

Not only I'd like to see this, I would also like to see information of
kvm itself being
more verbose, like whether or not we have in kernel irqchip/pit


-- 
Glauber  Costa.
"Free as in Freedom"
http://glommer.net

"The less confident you are, the more serious you have to act."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
  2009-07-29 11:03 [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command Bjørn Mork
  2009-07-29 18:48 ` Luiz Capitulino
@ 2009-07-29 20:58 ` Anthony Liguori
  2009-07-30  8:13   ` Bjørn Mork
  1 sibling, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2009-07-29 20:58 UTC (permalink / raw)
  To: Bjørn Mork; +Cc: qemu-devel

Bjørn Mork wrote:
> There isn't a one-to-one mapping between the KVM version and
> the QEMU version output from "info version".  Complete the
> picture by adding the KVM version to the existing "info kvm"
> monitor command.
>
>  (qemu) info kvm
>  kvm support: enabled
>  kvm version: kvm-85
>   

info version will tell you the kvm version.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
  2009-07-29 20:48   ` Glauber Costa
@ 2009-07-29 21:23     ` Luiz Capitulino
  0 siblings, 0 replies; 6+ messages in thread
From: Luiz Capitulino @ 2009-07-29 21:23 UTC (permalink / raw)
  To: Glauber Costa; +Cc: qemu-devel, Bjørn Mork

On Wed, 29 Jul 2009 17:48:13 -0300
Glauber Costa <glommer@gmail.com> wrote:

> On Wed, Jul 29, 2009 at 3:48 PM, Luiz Capitulino<lcapitulino@redhat.com> wrote:
> > On Wed, 29 Jul 2009 13:03:38 +0200
> > Bjørn Mork <bjorn@mork.no> wrote:
> >
> >> There isn't a one-to-one mapping between the KVM version and
> >> the QEMU version output from "info version".  Complete the
> >> picture by adding the KVM version to the existing "info kvm"
> >> monitor command.
> >>
> >>  (qemu) info kvm
> >>  kvm support: enabled
> >>  kvm version: kvm-85
> >
> >  Doesn't seem a good idea, as this is considered a stable protocol.
> >
> >  Either, we should check current users or add 'info kvm-version'.
> 
> can't see why. We recently added information to info migrate, and many others.
> If we are using a new line, shouldn't matter, since it is expected that parsers
> for those things would be line based.

 I don't think this is a safe assumption if you take it literally
for all the commands. If I remember correctly, libvirt for example,
expects the string '(qemu)' as a meaning of 'command executed',
in this case anything different could cause problems.

 I would have to check the code to be certain, though. But will
not matter anyway, if 'info kvm' has no users.

> Not only I'd like to see this, I would also like to see information of
> kvm itself being
> more verbose, like whether or not we have in kernel irqchip/pit

 Yes, this is really useful. I'm just concerned with current
users and when I started working on the monitor protocol people have
clearly expressed their concern on not changing commands output.

 I also should add that I would be extremely happy to find out
that monitor's output could be changed. :)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command
  2009-07-29 20:58 ` Anthony Liguori
@ 2009-07-30  8:13   ` Bjørn Mork
  0 siblings, 0 replies; 6+ messages in thread
From: Bjørn Mork @ 2009-07-30  8:13 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel

Anthony Liguori <anthony@codemonkey.ws> writes:
> Bjørn Mork wrote:
>> There isn't a one-to-one mapping between the KVM version and
>> the QEMU version output from "info version".  Complete the
>> picture by adding the KVM version to the existing "info kvm"
>> monitor command.
>>
>>  (qemu) info kvm
>>  kvm support: enabled
>>  kvm version: kvm-85
>>   
>
> info version will tell you the kvm version.

It will?  Ah, right.  I see that QEMU_PKGVERSION has been added to it.  

Weird.  I did attempt to add the KVM version to "info version" a while
ago, but this was (rightfully) rejected due to the monitor command
stability requirements and the fact that it would affect non-KVM usage
too.

Well, I guess my extended usage of "info kvm" isn't necessary anymore.
But it would IMHO still be useful to define the ouput as a variable
number of lines of 'name: value' sets.  I realise that we can't know for
sure that this won't break any parser anywhere, but such bugs should be
fairly easy to fix for those affected, if anyone.




Bjørn

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-30  8:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 11:03 [Qemu-devel] [PATCH] kvm: add kvm version to the "info kvm" monitor command Bjørn Mork
2009-07-29 18:48 ` Luiz Capitulino
2009-07-29 20:48   ` Glauber Costa
2009-07-29 21:23     ` Luiz Capitulino
2009-07-29 20:58 ` Anthony Liguori
2009-07-30  8:13   ` Bjørn Mork

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).