From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVR2d-00036Z-7E for qemu-devel@nongnu.org; Thu, 14 Jan 2010 09:51:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVR2Y-00033N-IS for qemu-devel@nongnu.org; Thu, 14 Jan 2010 09:51:18 -0500 Received: from [199.232.76.173] (port=47627 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVR2X-000338-Pm for qemu-devel@nongnu.org; Thu, 14 Jan 2010 09:51:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44927) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVR2X-0003rn-4D for qemu-devel@nongnu.org; Thu, 14 Jan 2010 09:51:13 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0EDiIqL011656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 14 Jan 2010 08:44:18 -0500 From: Gerd Hoffmann Date: Thu, 14 Jan 2010 14:44:14 +0100 Message-Id: <1263476654-7222-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1263476654-7222-1-git-send-email-kraxel@redhat.com> References: <1263476654-7222-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] pc: add driver version compat properties List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann This patch adds compat property entries for ide-disk.ver and scsi-disk.ver to pc-0.10 and pc-0.11. With this patch applied the scsi and ide disks report "0.10" and "0.11" as version when you start qemu with "-M pc-0.10" or "-M pc-0.11". Signed-off-by: Gerd Hoffmann --- hw/pc.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index a93c5f2..2548c14 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1083,6 +1083,14 @@ static QEMUMachine pc_machine_v0_11 = { .property = "vectors", .value = stringify(0), },{ + .driver = "ide-drive", + .property = "ver", + .value = "0.11", + },{ + .driver = "scsi-disk", + .property = "ver", + .value = "0.11", + },{ .driver = "PCI", .property = "rombar", .value = stringify(0), @@ -1114,6 +1122,14 @@ static QEMUMachine pc_machine_v0_10 = { .property = "vectors", .value = stringify(0), },{ + .driver = "ide-drive", + .property = "ver", + .value = "0.10", + },{ + .driver = "scsi-disk", + .property = "ver", + .value = "0.10", + },{ .driver = "PCI", .property = "rombar", .value = stringify(0), -- 1.6.5.2