From: Fam Zheng <famz@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v6 3/6] gicv3: Convert to DEFINE_PROP_LINK
Date: Tue, 5 Sep 2017 23:35:07 +0800 [thread overview]
Message-ID: <20170905153507.GA31389@lemon.lan> (raw)
In-Reply-To: <a628d888-f1e8-2d7f-034c-095c29818ae4@amsat.org>
On Tue, 09/05 10:44, Philippe Mathieu-Daudé wrote:
> Hi Fam,
>
> On 09/05/2017 10:11 AM, Fam Zheng wrote:
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> > ---
> > hw/intc/arm_gicv3_its_kvm.c | 19 +++++++------------
> > 1 file changed, 7 insertions(+), 12 deletions(-)
> >
> > diff --git a/hw/intc/arm_gicv3_its_kvm.c b/hw/intc/arm_gicv3_its_kvm.c
> > index 1f8991b8a6..39903d5eab 100644
> > --- a/hw/intc/arm_gicv3_its_kvm.c
> > +++ b/hw/intc/arm_gicv3_its_kvm.c
> > @@ -120,17 +120,6 @@ static void kvm_arm_its_realize(DeviceState *dev, Error **errp)
> > qemu_add_vm_change_state_handler(vm_change_state_handler, s);
> > }
> > -static void kvm_arm_its_init(Object *obj)
> > -{
> > - GICv3ITSState *s = KVM_ARM_ITS(obj);
> > -
> > - object_property_add_link(obj, "parent-gicv3",
> > - "kvm-arm-gicv3", (Object **)&s->gicv3,
> > - object_property_allow_set_link,
> > - OBJ_PROP_LINK_UNREF_ON_RELEASE,
> > - &error_abort);
> > -}
> > -
> > /**
> > * kvm_arm_its_pre_save - handles the saving of ITS registers.
> > * ITS tables are flushed into guest RAM separately and earlier,
> > @@ -205,12 +194,19 @@ static void kvm_arm_its_post_load(GICv3ITSState *s)
> > GITS_CTLR, &s->ctlr, true, &error_abort);
> > }
> > +static Property kvm_arm_its_props[] = {
> > + DEFINE_PROP_LINK("parent-gicv3", GICv3ITSState, gicv3, "kvm-arm-gicv3",
>
> moving TYPE_KVM_ARM_GICV3 to kvm_arm.h and using it here:
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This file is only compiled natively on arm, so I'm not comfortable to make a
more complex change than this patch which may break build due to the #ifdef's in
the headers, or add your rev-by without a compile test. :(
The open coded type name has already been used here so the change you requested
can be done separately, I think.
Fam
next prev parent reply other threads:[~2017-09-05 15:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 13:11 [Qemu-devel] [PATCH v6 0/6] arm: Make use of DEFINE_PROP_LINK Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 1/6] armv7m: Convert bitband.source-memory to DEFINE_PROP_LINK Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 2/6] armv7m: Convert armv7m.memory " Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 3/6] gicv3: Convert " Fam Zheng
2017-09-05 13:44 ` Philippe Mathieu-Daudé
2017-09-05 15:35 ` Fam Zheng [this message]
2017-09-05 16:20 ` Philippe Mathieu-Daudé
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 4/6] xlnx_zynqmp: " Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 5/6] xilinx_axienet: " Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 6/6] xilinx_axidma: " Fam Zheng
2017-09-05 15:47 ` [Qemu-devel] [PATCH v6 0/6] arm: Make use of DEFINE_PROP_LINK Peter Maydell
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=20170905153507.GA31389@lemon.lan \
--to=famz@redhat.com \
--cc=f4bug@amsat.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).