* [PATCH] Add KVM version to monitor "info version"
@ 2008-11-26 10:22 Bjørn Mork
2008-11-26 10:55 ` Daniel P. Berrange
0 siblings, 1 reply; 5+ messages in thread
From: Bjørn Mork @ 2008-11-26 10:22 UTC (permalink / raw)
To: kvm
Trying to track the current KVM head as closely as possible, I often
find myself wondering which KVM version a particular guest instance is
running. The attached patch adds this information to the monitor
command "info version":
(qemu) info version
0.9.1 (kvm-79)
Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
qemu/monitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qemu/monitor.c b/qemu/monitor.c
index a58a18e..f61fe56 100644
--- a/qemu/monitor.c
+++ b/qemu/monitor.c
@@ -246,7 +246,7 @@ static void do_info(const char *item)
static void do_info_version(void)
{
- term_printf("%s\n", QEMU_VERSION);
+ term_printf("%s\n", QEMU_VERSION " (" KVM_VERSION ")");
}
static void do_info_name(void)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Add KVM version to monitor "info version"
2008-11-26 10:22 [PATCH] Add KVM version to monitor "info version" Bjørn Mork
@ 2008-11-26 10:55 ` Daniel P. Berrange
2008-11-26 11:18 ` Glauber Costa
0 siblings, 1 reply; 5+ messages in thread
From: Daniel P. Berrange @ 2008-11-26 10:55 UTC (permalink / raw)
To: Bjørn Mork; +Cc: kvm
On Wed, Nov 26, 2008 at 11:22:03AM +0100, Bj?rn Mork wrote:
> Trying to track the current KVM head as closely as possible, I often
> find myself wondering which KVM version a particular guest instance is
> running. The attached patch adds this information to the monitor
> command "info version":
>
> (qemu) info version
> 0.9.1 (kvm-79)
I'd really rather we didn't touch the 'info version' command since it
means we have different syntax from upstream QEMU. If we want KVM
version info exposed, then I'd suggest 'info kvmversion' or some other
new command.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add KVM version to monitor "info version"
2008-11-26 10:55 ` Daniel P. Berrange
@ 2008-11-26 11:18 ` Glauber Costa
2008-11-26 11:23 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Glauber Costa @ 2008-11-26 11:18 UTC (permalink / raw)
To: Daniel P. Berrange; +Cc: Bjørn Mork, kvm
On Wed, Nov 26, 2008 at 8:55 AM, Daniel P. Berrange <berrange@redhat.com> wrote:
> On Wed, Nov 26, 2008 at 11:22:03AM +0100, Bj?rn Mork wrote:
>> Trying to track the current KVM head as closely as possible, I often
>> find myself wondering which KVM version a particular guest instance is
>> running. The attached patch adds this information to the monitor
>> command "info version":
>>
>> (qemu) info version
>> 0.9.1 (kvm-79)
>
> I'd really rather we didn't touch the 'info version' command since it
> means we have different syntax from upstream QEMU. If we want KVM
> version info exposed, then I'd suggest 'info kvmversion' or some other
> new command.
I believe it fits nicely into info kvm. Instead of enabled/disabled,
we could answer
disabled or kvm-whatever
--
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] 5+ messages in thread
* Re: [PATCH] Add KVM version to monitor "info version"
2008-11-26 11:18 ` Glauber Costa
@ 2008-11-26 11:23 ` Avi Kivity
2008-12-08 13:37 ` Bjørn Mork
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2008-11-26 11:23 UTC (permalink / raw)
To: Glauber Costa; +Cc: Daniel P. Berrange, Bjørn Mork, kvm
Glauber Costa wrote:
> On Wed, Nov 26, 2008 at 8:55 AM, Daniel P. Berrange <berrange@redhat.com> wrote:
>
>> On Wed, Nov 26, 2008 at 11:22:03AM +0100, Bj?rn Mork wrote:
>>
>>> Trying to track the current KVM head as closely as possible, I often
>>> find myself wondering which KVM version a particular guest instance is
>>> running. The attached patch adds this information to the monitor
>>> command "info version":
>>>
>>> (qemu) info version
>>> 0.9.1 (kvm-79)
>>>
>> I'd really rather we didn't touch the 'info version' command since it
>> means we have different syntax from upstream QEMU. If we want KVM
>> version info exposed, then I'd suggest 'info kvmversion' or some other
>> new command.
>>
>
> I believe it fits nicely into info kvm. Instead of enabled/disabled,
> we could answer
> disabled or kvm-whatever
>
>
(qemu) info kvm
enabled (kvm-123)
or
(qemu) info kvm
enabled
version kvm-123
May be easier to parse, and more backwards compatible.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add KVM version to monitor "info version"
2008-11-26 11:23 ` Avi Kivity
@ 2008-12-08 13:37 ` Bjørn Mork
0 siblings, 0 replies; 5+ messages in thread
From: Bjørn Mork @ 2008-12-08 13:37 UTC (permalink / raw)
To: kvm
Avi Kivity <avi@redhat.com> writes:
> (qemu) info kvm
> enabled (kvm-123)
>
> or
>
> (qemu) info kvm
> enabled
> version kvm-123
>
> May be easier to parse, and more backwards compatible.
Something like this then?
The attached patch adds KVM version to the monitor command "info kvm":
(qemu) info kvm
kvm support: enabled
kvm version: kvm-80
Signed-off-by: Bjørn Mork <bjorn@mork.no>
diff --git a/qemu/monitor.c b/qemu/monitor.c
index 3948aae..3831789 100644
--- a/qemu/monitor.c
+++ b/qemu/monitor.c
@@ -1297,6 +1297,7 @@ static void do_info_kvm(void)
term_printf("enabled\n");
else
term_printf("disabled\n");
+ term_printf("kvm version: " KVM_VERSION "\n");
#else
term_printf("kvm support: not compiled\n");
#endif
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-08 13:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 10:22 [PATCH] Add KVM version to monitor "info version" Bjørn Mork
2008-11-26 10:55 ` Daniel P. Berrange
2008-11-26 11:18 ` Glauber Costa
2008-11-26 11:23 ` Avi Kivity
2008-12-08 13:37 ` 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).