From patchwork Thu Jan 14 13:44:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 42896 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 64E1CB7CD5 for ; Fri, 15 Jan 2010 02:05:29 +1100 (EST) Received: from localhost ([127.0.0.1]:53160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVRFk-0005LW-Ga for incoming@patchwork.ozlabs.org; Thu, 14 Jan 2010 10:04:52 -0500 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 Received: from zweiblum.home.kraxel.org (vpn1-7-208.ams2.redhat.com [10.36.7.208]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0EDiGXO012485; Thu, 14 Jan 2010 08:44:16 -0500 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id C2F177010D; Thu, 14 Jan 2010 14:44:14 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 3/3] pc: add driver version compat properties X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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),