From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Bj=C3=B8rn?= Mork Subject: Re: [PATCH] Add KVM version to monitor "info version" Date: Mon, 08 Dec 2008 14:37:12 +0100 Message-ID: <87prk24wl3.fsf@obelix.mork.no> References: <87abbmn5x0.fsf@obelix.mork.no> <20081126105525.GF16540@redhat.com> <5d6222a80811260318i38e1a8c9n40d8336734347371@mail.gmail.com> <492D31C0.9070101@redhat.com> 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]:53500 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbYLHNhb (ORCPT ); Mon, 8 Dec 2008 08:37:31 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L9gIg-0008MD-O2 for kvm@vger.kernel.org; Mon, 08 Dec 2008 13:37:26 +0000 Received: from 193.160.199.2 ([193.160.199.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 13:37:26 +0000 Received: from bjorn by 193.160.199.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 13:37:26 +0000 Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity 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": =20 (qemu) info kvm kvm support: enabled kvm version: kvm-80 =20 Signed-off-by: Bj=C3=B8rn Mork 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