qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Eric Auger" <eric.auger@linaro.org>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	"qemu-ppc Mailing List" <qemu-ppc@nongnu.org>,
	"Stalley, Sean" <sean.stalley@intel.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v2 1/9] qom: Move property helpers to own file
Date: Thu, 31 Jul 2014 16:12:33 +0200	[thread overview]
Message-ID: <53DA4ED1.2020002@suse.de> (raw)
In-Reply-To: <CAEgOgz79bSh8eexX9PBGoigxNVrAUK=pCcK0iHAvF6khtJXBnQ@mail.gmail.com>


On 31.07.14 15:46, Peter Crosthwaite wrote:
> On Thu, Jul 3, 2014 at 4:01 AM, Alexander Graf <agraf@suse.de> wrote:
>> We have accumulated a number of friendly helpers that make registration
>> of properties easier. However, their number is only increasing and they
>> start to clutter the core object.c file.
>>
>> So let's move them into a separate C file and thus ensure that we have
>> room to grow :).
>>
>> Signed-off-by: Alexander Graf <agraf@suse.de>
>> ---
>>   backends/hostmem-file.c |   1 +
>>   backends/hostmem.c      |   1 +
>>   backends/rng-egd.c      |   1 +
>>   backends/rng-random.c   |   1 +
>>   backends/rng.c          |   1 +
>>   backends/tpm.c          |   1 +
>>   hw/acpi/ich9.c          |   1 +
>>   hw/acpi/pcihp.c         |   1 +
>>   hw/acpi/piix4.c         |   1 +
>>   hw/core/machine.c       |   1 +
>>   hw/core/qdev.c          |   1 +
>>   hw/i386/acpi-build.c    |   1 +
>>   hw/isa/lpc_ich9.c       |   1 +
>>   hw/ppc/spapr.c          |   1 +
>>   include/qom/object.h    |  85 -------------------
>>   include/qom/property.h  | 104 ++++++++++++++++++++++++
>>   memory.c                |   1 +
>>   qom/Makefile.objs       |   2 +-
>>   qom/object.c            | 197 ++------------------------------------------
>>   qom/property.c          | 212 ++++++++++++++++++++++++++++++++++++++++++++++++
>>   target-i386/cpu.c       |   1 +
>>   ui/console.c            |   1 +
>>   22 files changed, 340 insertions(+), 277 deletions(-)
>>   create mode 100644 include/qom/property.h
>>   create mode 100644 qom/property.c
>>
>> - * object_property_add_uint64_ptr:
>> - * @obj: the object to add a property to
>> - * @name: the name of the property
>> - * @v: pointer to value
>> - * @errp: if an error occurs, a pointer to an area to store the error
>> - *
>> - * Add an integer property in memory.  This function will add a
>> - * property of type 'uint64'.
>> - */
>> -void object_property_add_uint64_ptr(Object *obj, const char *name,
>> -                                    const uint64_t *v, Error **Errp);
>> -
>> -/**
>>    * object_property_add_alias:
> Any reason to not migrate alias and link props as well?

IIRC I tried, but there were more interdependencies inside the same 
file. So I went with the easy ones (that I cared about) first and left 
the rest as exercise for the reader :).


Alex

  reply	other threads:[~2014-07-31 14:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 18:01 [Qemu-devel] [PATCH v2 0/9] Dynamic sysbus device allocation support Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 1/9] qom: Move property helpers to own file Alexander Graf
2014-07-31 13:46   ` Peter Crosthwaite
2014-07-31 14:12     ` Alexander Graf [this message]
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 2/9] qom: macroify integer property helpers Alexander Graf
2014-07-31 13:44   ` Peter Crosthwaite
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 3/9] qom: Expose property helpers for get/set of integers Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 4/9] qom: Add generic object property g_free helper Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 5/9] sysbus: Add user map hints Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 6/9] sysbus: Make devices spawnable via -device Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 7/9] PPC: e500: Support dynamically spawned sysbus devices Alexander Graf
2014-07-30 14:55   ` Peter Maydell
2014-07-31  4:07     ` Peter Crosthwaite
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 8/9] e500: Add support for eTSEC in device tree Alexander Graf
2014-07-02 18:01 ` [Qemu-devel] [PATCH v2 9/9] PPC: Fix default config ordering and add eTSEC for ppc64 Alexander Graf

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=53DA4ED1.2020002@suse.de \
    --to=agraf@suse.de \
    --cc=afaerber@suse.de \
    --cc=eric.auger@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=sean.stalley@intel.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).