qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Thomas Huth <thuth@redhat.com>
Cc: lvivier@redhat.com, mdroth@linux.vnet.ibm.com, aik@ozlabs.ru,
	qemu-devel@nongnu.org, agraf@suse.de, qemu-ppc@nongnu.org,
	bharata@linux.vnet.ibm.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState
Date: Tue, 26 May 2015 11:14:51 +1000	[thread overview]
Message-ID: <20150526011451.GL6255@voom.redhat.com> (raw)
In-Reply-To: <20150507101343.5d9198f8@thh440s>

[-- Attachment #1: Type: text/plain, Size: 2871 bytes --]

On Thu, May 07, 2015 at 10:13:43AM +0200, Thomas Huth wrote:
> On Thu,  7 May 2015 13:57:01 +1000
> David Gibson <david@gibson.dropbear.id.au> wrote:
> 
> > The code for -machine pseries maintains a global sPAPREnvironment structure
> > which keeps track of general state information about the guest platform.
> > This predates the existence of the MachineState structure, but performs
> > basically the same function.
> > 
> > Now that we have the generic MachineState, fold sPAPREnvironment into
> > sPAPRMachineState, the pseries specific subclass of MachineState.
> > 
> > This is mostly a matter of search and replace, although a few places which
> > relied on the global spapr variable are changed to find the structure via
> > qdev_get_machine().
> > 
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> > ---
> >  hw/char/spapr_vty.c         |  14 +-
> >  hw/intc/xics.c              |  42 +++---
> >  hw/intc/xics_kvm.c          |   2 +-
> >  hw/net/spapr_llan.c         |  20 +--
> >  hw/nvram/spapr_nvram.c      |   8 +-
> >  hw/ppc/spapr.c              | 339 +++++++++++++++++++++-----------------------
> >  hw/ppc/spapr_events.c       |  37 ++---
> >  hw/ppc/spapr_hcall.c        |  44 +++---
> >  hw/ppc/spapr_iommu.c        |   8 +-
> >  hw/ppc/spapr_pci.c          |  91 ++++++------
> >  hw/ppc/spapr_rtas.c         |  66 ++++-----
> >  hw/ppc/spapr_rtc.c          |  12 +-
> >  hw/ppc/spapr_vio.c          |  31 ++--
> >  include/hw/pci-host/spapr.h |  12 +-
> >  include/hw/ppc/spapr.h      |  33 +++--
> >  include/hw/ppc/spapr_vio.h  |   6 +-
> >  16 files changed, 391 insertions(+), 374 deletions(-)
> > 
> > diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c
> > index 4e464bd..5a27740 100644
> > --- a/hw/char/spapr_vty.c
> > +++ b/hw/char/spapr_vty.c
> > @@ -74,7 +74,7 @@ static void spapr_vty_realize(VIOsPAPRDevice *sdev, Error **errp)
> >  }
> >  
> >  /* Forward declaration */
> > -static target_ulong h_put_term_char(PowerPCCPU *cpu, sPAPREnvironment *spapr,
> > +static target_ulong h_put_term_char(PowerPCCPU *cpu, sPAPRMachineState *sm,
> >                                      target_ulong opcode, target_ulong *args)
> 
> Phew, this patch is really hugh, ... mainly just because of the
> renaming. Could you maybe keep the "spapr" as parameter name everywhere
> instead of "sm"? (i.e. use "sPAPRMachineState *spapr" as parameter?)
> That should IMHO be fine, too, and it would decrease the size of the
> patch drastically. (And it likely does not break other patches so badly
> which are currently pending)

Good call.  I'll respin without the extraneous renames.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-05-26  1:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07  3:57 [Qemu-devel] [PATCH 0/4] sPAPRMachineState cleanups David Gibson
2015-05-07  3:57 ` [Qemu-devel] [PATCH 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState David Gibson
2015-05-07  8:13   ` Thomas Huth
2015-05-26  1:14     ` David Gibson [this message]
2015-05-07  3:57 ` [Qemu-devel] [PATCH 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState David Gibson
2015-05-07  4:12   ` Alexey Kardashevskiy
2015-05-07  4:40     ` David Gibson
2015-05-26  1:23     ` David Gibson
2015-05-07  3:57 ` [Qemu-devel] [PATCH 3/4] spapr: Remove obsolete entry_point " David Gibson
2015-05-07  4:50   ` Bharata B Rao
2015-05-26  1:39     ` David Gibson
2015-05-07  3:57 ` [Qemu-devel] [PATCH 4/4] spapr: Add sPAPRMachineClass David Gibson

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=20150526011451.GL6255@voom.redhat.com \
    --to=david@gibson.dropbear.id.au \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=aik@ozlabs.ru \
    --cc=bharata@linux.vnet.ibm.com \
    --cc=lvivier@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=thuth@redhat.com \
    /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).