From: Igor Mammedov <imammedo@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Jason Wang <jasowang@redhat.com>,
Eduardo Habkost <ehabkost@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] pc: Set broken_reserved_end on pc-*-2.4, not 2.5
Date: Thu, 24 Sep 2015 14:31:29 +0200 [thread overview]
Message-ID: <20150924143129.3d8bd9b1@nial.brq.redhat.com> (raw)
In-Reply-To: <20150924134423-mutt-send-email-mst@redhat.com>
On Thu, 24 Sep 2015 13:44:45 +0300
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Wed, Sep 23, 2015 at 12:04:49PM -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 <ehabkost@redhat.com>
>
> Thanks!
> I squashed this in.
> Can you pls confirm I did this correctly this time?
it looks fine to me.
>
> > ---
> > 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);
> > }
> >
> > --
> > 2.1.0
>
prev parent reply other threads:[~2015-09-24 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 15:04 [Qemu-devel] [PATCH] pc: Set broken_reserved_end on pc-*-2.4, not 2.5 Eduardo Habkost
2015-09-24 9:47 ` Igor Mammedov
2015-09-24 10:44 ` Michael S. Tsirkin
2015-09-24 12:31 ` Igor Mammedov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150924143129.3d8bd9b1@nial.brq.redhat.com \
--to=imammedo@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).