From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf37y-0006uP-Cb for qemu-devel@nongnu.org; Thu, 24 Sep 2015 05:47:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf37v-0004H4-Lq for qemu-devel@nongnu.org; Thu, 24 Sep 2015 05:47:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf37v-0004G4-GB for qemu-devel@nongnu.org; Thu, 24 Sep 2015 05:47:43 -0400 Date: Thu, 24 Sep 2015 11:47:38 +0200 From: Igor Mammedov Message-ID: <20150924114738.63c99a3e@nial.brq.redhat.com> In-Reply-To: <1443020689-5370-1-git-send-email-ehabkost@redhat.com> References: <1443020689-5370-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pc: Set broken_reserved_end on pc-*-2.4, not 2.5 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Paolo Bonzini , Jason Wang , Richard Henderson , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Wed, 23 Sep 2015 12:04:49 -0300 Eduardo Habkost wrote: > Version 1 of the pc-*-2.5 machine class series was applied to the PCI > tree instead of v3 (which was rebased after the broken_reserved_end > patch by Igor was included). > > This patch includes the missing hunks from v3, to make sure > broken_reserved_end is set at the right machine class. > > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > hw/i386/pc_piix.c | 4 ++-- > hw/i386/pc_q35.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c > index caa4edc..3ffb05f 100644 > --- a/hw/i386/pc_piix.c > +++ b/hw/i386/pc_piix.c > @@ -466,9 +466,7 @@ static void pc_i440fx_machine_options(MachineClass *m) > > static void pc_i440fx_2_5_machine_options(MachineClass *m) > { > - PCMachineClass *pcmc = PC_MACHINE_CLASS(m); > pc_i440fx_machine_options(m); > - pcmc->broken_reserved_end = true; > m->alias = "pc"; > m->is_default = 1; > } > @@ -479,9 +477,11 @@ DEFINE_I440FX_MACHINE(v2_5, "pc-i440fx-2.5", NULL, > > static void pc_i440fx_2_4_machine_options(MachineClass *m) > { > + PCMachineClass *pcmc = PC_MACHINE_CLASS(m); > pc_i440fx_2_5_machine_options(m); > m->alias = NULL; > m->is_default = 0; > + pcmc->broken_reserved_end = true; > SET_MACHINE_COMPAT(m, PC_COMPAT_2_4); > } > > diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c > index 506b6bf..1b7d3b6 100644 > --- a/hw/i386/pc_q35.c > +++ b/hw/i386/pc_q35.c > @@ -372,9 +372,7 @@ static void pc_q35_machine_options(MachineClass *m) > > static void pc_q35_2_5_machine_options(MachineClass *m) > { > - PCMachineClass *pcmc = PC_MACHINE_CLASS(m); > pc_q35_machine_options(m); > - pcmc->broken_reserved_end = true; > m->alias = "q35"; > } > > @@ -383,8 +381,10 @@ DEFINE_Q35_MACHINE(v2_5, "pc-q35-2.5", NULL, > > static void pc_q35_2_4_machine_options(MachineClass *m) > { > + PCMachineClass *pcmc = PC_MACHINE_CLASS(m); > pc_q35_2_5_machine_options(m); > m->alias = NULL; > + pcmc->broken_reserved_end = true; > SET_MACHINE_COMPAT(m, PC_COMPAT_2_4); > } >