From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: [PATCH] Add KVM version to monitor "info version" Date: Wed, 26 Nov 2008 11:22:03 +0100 Message-ID: <87abbmn5x0.fsf@obelix.mork.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:50493 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbYKZKZH (ORCPT ); Wed, 26 Nov 2008 05:25:07 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1L5HZu-0000Je-Ar for kvm@vger.kernel.org; Wed, 26 Nov 2008 10:25:02 +0000 Received: from 83.247.120.148.in-addr.arpa ([148.120.247.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Nov 2008 10:25:02 +0000 Received: from bjorn by 83.247.120.148.in-addr.arpa with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Nov 2008 10:25:02 +0000 Sender: kvm-owner@vger.kernel.org List-ID: 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=C3=B8rn Mork --- 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) =20 static void do_info_version(void) { - term_printf("%s\n", QEMU_VERSION); + term_printf("%s\n", QEMU_VERSION " (" KVM_VERSION ")"); } =20 static void do_info_name(void)