All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Auger <eric.auger@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>,
	eric.auger@st.com, qemu-devel@nongnu.org,
	alex.williamson@redhat.com, agraf@suse.de,
	peter.crosthwaite@xilinx.com
Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org
Subject: Re: [PATCH v13 10/12] qdev: check callback takes the property child as third argument
Date: Wed, 29 Apr 2015 10:37:04 +0200	[thread overview]
Message-ID: <55409830.30303@linaro.org> (raw)
In-Reply-To: <554094DF.3010607@redhat.com>

On 04/29/2015 10:22 AM, Paolo Bonzini wrote:
> 
> 
> On 28/04/2015 18:51, Eric Auger wrote:
>> -    prop->check(obj, name, new_target, &local_err);
>> +    object_ref(new_target);
>> +    *child = new_target;
>> +
>> +    prop->check(obj, name, child, &local_err);
>>      if (local_err) {
>>          error_propagate(errp, local_err);
>> +        *child = old_target;
>> +        object_ref(new_target);
> 
> This should be an unref.

oups yes.

Thanks! Do I keep this series or do I revert to sysbus irq connect irq
temporary patch as per Peter's last email?

Eric
> 
> Paolo
> 
>>          return;
>>      }
>>  
>> -    object_ref(new_target);
>> -    *child = new_target;
>>      object_unref(old_target);

WARNING: multiple messages have this Message-ID (diff)
From: Eric Auger <eric.auger@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>,
	eric.auger@st.com, qemu-devel@nongnu.org,
	alex.williamson@redhat.com, agraf@suse.de,
	peter.crosthwaite@xilinx.com
Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH v13 10/12] qdev: check callback takes the property child as third argument
Date: Wed, 29 Apr 2015 10:37:04 +0200	[thread overview]
Message-ID: <55409830.30303@linaro.org> (raw)
In-Reply-To: <554094DF.3010607@redhat.com>

On 04/29/2015 10:22 AM, Paolo Bonzini wrote:
> 
> 
> On 28/04/2015 18:51, Eric Auger wrote:
>> -    prop->check(obj, name, new_target, &local_err);
>> +    object_ref(new_target);
>> +    *child = new_target;
>> +
>> +    prop->check(obj, name, child, &local_err);
>>      if (local_err) {
>>          error_propagate(errp, local_err);
>> +        *child = old_target;
>> +        object_ref(new_target);
> 
> This should be an unref.

oups yes.

Thanks! Do I keep this series or do I revert to sysbus irq connect irq
temporary patch as per Peter's last email?

Eric
> 
> Paolo
> 
>>          return;
>>      }
>>  
>> -    object_ref(new_target);
>> -    *child = new_target;
>>      object_unref(old_target);

  reply	other threads:[~2015-04-29  8:31 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28 16:51 [PATCH v13 00/12] KVM platform device passthrough Eric Auger
2015-04-28 16:51 ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 01/12] linux-headers: update headers according to 4.1-rc0 Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-29 10:36   ` Christian Borntraeger
2015-04-29 10:36     ` [Qemu-devel] " Christian Borntraeger
2015-04-29 11:11     ` Eric Auger
2015-04-29 11:11       ` Eric Auger
2015-04-28 16:51 ` [PATCH v13 02/12] hw/vfio/platform: vfio-platform skeleton Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 03/12] hw/vfio/platform: add irq assignment Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 04/12] hw/vfio/platform: calxeda xgmac device Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 05/12] hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 06/12] kvm: rename kvm_irqchip_[add, remove]_irqfd_notifier with gsi suffix Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 07/12] kvm-all.c: add qemu_irq/gsi hash table and utility routines Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 08/12] intc: arm_gic_kvm: set the qemu_irq/gsi mapping Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 09/12] qdev: pass the check callback to qdev_init_gpio_out_named Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 10/12] qdev: check callback takes the property child as third argument Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-29  8:22   ` Paolo Bonzini
2015-04-29  8:22     ` [Qemu-devel] " Paolo Bonzini
2015-04-29  8:37     ` Eric Auger [this message]
2015-04-29  8:37       ` Eric Auger
2015-04-29 11:12       ` Paolo Bonzini
2015-04-29 11:12         ` [Qemu-devel] " Paolo Bonzini
2015-04-29 11:10         ` Eric Auger
2015-04-29 11:10           ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 11/12] sysbus: add irq_set_hook Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger
2015-04-28 16:51 ` [PATCH v13 12/12] hw/vfio/platform: add irqfd support Eric Auger
2015-04-28 16:51   ` [Qemu-devel] " Eric Auger

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=55409830.30303@linaro.org \
    --to=eric.auger@linaro.org \
    --cc=agraf@suse.de \
    --cc=alex.williamson@redhat.com \
    --cc=eric.auger@st.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=patches@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.