Received: from eggs.gnu.org ([2001:4830:134:3::10]:59331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsyGZ-0007HP-MI for qemu-devel@nongnu.org; Thu, 14 May 2015 14:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsyGW-0008EP-HL for qemu-devel@nongnu.org; Thu, 14 May 2015 14:53:55 -0400 From: Eduardo Habkost Date: Thu, 14 May 2015 15:53:07 -0300 Message-Id: <1431629590-25181-11-git-send-email-ehabkost@redhat.com> In-Reply-To: <1431629590-25181-1-git-send-email-ehabkost@redhat.com> References: <1431629590-25181-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v2 10/13] piix: Move pc-0.11 drive version compat props to PC_COMPAT_0_11 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , jasowang@redhat.com, Alexander Graf , qemu-ppc@nongnu.org, Gerd Hoffmann , pbonzini@redhat.com, rth@twiddle.net The current code setting ide-drive.ver and scsi-disk.ver on pc-0.11 breaks the PC_COMPAT_* nesting pattern we currently use. As those variables are overwritten in pc-0.10 too, they can be inherited by pc-0.10 with no side-effects at all. Cc: Gerd Hoffmann Signed-off-by: Eduardo Habkost --- hw/i386/pc_piix.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 1e12eff..eb0c11f 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -920,6 +920,14 @@ static QEMUMachine pc_machine_v0_12 = { .driver = TYPE_PCI_DEVICE,\ .property = "rombar",\ .value = stringify(0),\ + },{\ + .driver = "ide-drive",\ + .property = "ver",\ + .value = "0.11",\ + },{\ + .driver = "scsi-disk",\ + .property = "ver",\ + .value = "0.11",\ }, static QEMUMachine pc_machine_v0_11 = { @@ -927,15 +935,6 @@ static QEMUMachine pc_machine_v0_11 = { .name = "pc-0.11", .compat_props = (GlobalProperty[]) { PC_COMPAT_0_11 - { - .driver = "ide-drive", - .property = "ver", - .value = "0.11", - },{ - .driver = "scsi-disk", - .property = "ver", - .value = "0.11", - }, { /* end of list */ } }, .hw_version = "0.11", -- 2.1.0