From: "Bjørn Mork" <bjorn@mork.no>
To: kvm@vger.kernel.org
Subject: Re: [PATCH] Add KVM version to monitor "info version"
Date: Mon, 08 Dec 2008 14:37:12 +0100 [thread overview]
Message-ID: <87prk24wl3.fsf@obelix.mork.no> (raw)
In-Reply-To: 492D31C0.9070101@redhat.com
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
prev parent reply other threads:[~2008-12-08 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=87prk24wl3.fsf@obelix.mork.no \
--to=bjorn@mork.no \
--cc=kvm@vger.kernel.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.