All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "peter.crosthwaite@xilinx.com" <peter.crosthwaite@xilinx.com>,
	"Huangweidong (C)" <weidong.huang@huawei.com>,
	Luonengjun <luonengjun@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
	"imammedo@redhat.com" <imammedo@redhat.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"afaerber@suse.de" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v4 1/4] qdev: using error_abort instead of using local_err
Date: Tue, 2 Sep 2014 11:25:10 +0300	[thread overview]
Message-ID: <20140902082510.GA10356@redhat.com> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF1902086DC0501@SZXEMA503-MBS.china.huawei.com>

On Tue, Sep 02, 2014 at 08:19:22AM +0000, Gonglei (Arei) wrote:
> > From: Gonglei (Arei)
> > Sent: Tuesday, September 02, 2014 4:04 PM
> > Subject: [PATCH v4 1/4] qdev: using error_abort instead of using local_err
> > Importance: High
> > 
> > From: Gonglei <arei.gonglei@huawei.com>
> > 
> > This error can not happen normally. If it happens indicates
> > something very wrong, we should abort QEMU. moreover, The
> > user can only refer to /machine/peripheral, not
> > /machine/unattached.
> > 
> > Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> > ---
> 
> Oops, I forget to add 'Reviewed-by' Peter in this patch. 
> 
> Next version will fix this. Sorry!
> 
> Best regards,
> -Gonglei

No need to repost just for this: reply to the
appropriate patch with Reviewed-by in the body.

> >  hw/core/qdev.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/hw/core/qdev.c b/hw/core/qdev.c
> > index da1ba48..4a1ac5b 100644
> > --- a/hw/core/qdev.c
> > +++ b/hw/core/qdev.c
> > @@ -820,13 +820,13 @@ static void device_set_realized(Object *obj, bool
> > value, Error **errp)
> >      }
> > 
> >      if (value && !dev->realized) {
> > -        if (!obj->parent && local_err == NULL) {
> > +        if (!obj->parent) {
> >              static int unattached_count;
> >              gchar *name = g_strdup_printf("device[%d]",
> > unattached_count++);
> > 
> > 
> > object_property_add_child(container_get(qdev_get_machine(),
> > 
> > "/unattached"),
> > -                                      name, obj, &local_err);
> > +                                      name, obj, &error_abort);
> >              g_free(name);
> >          }
> > 
> > --
> > 1.7.12.4
> > 

  reply	other threads:[~2014-09-02  8:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02  8:04 [Qemu-devel] [PATCH v4 0/4] Refactor device_set_realized to avoid resource leak arei.gonglei
2014-09-02  8:04 ` [Qemu-devel] [PATCH v4 1/4] qdev: using error_abort instead of using local_err arei.gonglei
2014-09-02  8:19   ` Gonglei (Arei)
2014-09-02  8:25     ` Michael S. Tsirkin [this message]
2014-09-02  8:28       ` Gonglei (Arei)
2014-09-02  8:04 ` [Qemu-devel] [PATCH v4 2/4] qdev: using NULL instead of local_err for qbus_child unrealize arei.gonglei
2014-09-02  8:24   ` Peter Crosthwaite
2014-09-02  8:39     ` Gonglei (Arei)
2014-09-02  8:47       ` Peter Crosthwaite
2014-09-02  8:50         ` Gonglei (Arei)
2014-09-02  8:04 ` [Qemu-devel] [PATCH v4 3/4] qdev: add cleanup logic in device_set_realized() to avoid resource leak arei.gonglei
2014-09-02  8:04 ` [Qemu-devel] [PATCH v4 4/4] pcie: don't assert when hotplug a PCIe device with 'function != 0' arei.gonglei

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=20140902082510.GA10356@redhat.com \
    --to=mst@redhat.com \
    --cc=afaerber@suse.de \
    --cc=arei.gonglei@huawei.com \
    --cc=imammedo@redhat.com \
    --cc=luonengjun@huawei.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weidong.huang@huawei.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 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.