[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support.
From: |
Luiz Capitulino |
Subject: |
Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support. |
Date: |
Tue, 16 Oct 2012 10:23:43 -0300 |
On Mon, 15 Oct 2012 13:09:55 +0200
Andreas Färber <address@hidden> wrote:
> Am 15.10.2012 08:51, schrieb Lei Li:
> > On 10/12/2012 08:39 PM, Gerd Hoffmann wrote:
> >> +void qmp_chardev_del(const char *id, Error **errp)
> >> +{
> >> + CharDriverState *chr;
> >> +
> >> + chr = qemu_chr_find(id);
> >> + if (NULL == chr) {
> >> + error_setg(errp, "Chardev '%s' not found\n", id);
> >
> > Maybe this should be replaced by QERR_ macros to keep
> > compatibility since this one is listed in ErrorClass
> > in the schema, like:
> >
> > error_set(errp, QERR_DEVICE_NOT_FOUND, id);
>
> No, error_setg() is the new replacement, QERR_* is deprecated.
This is a case where the error appears in the ErrorClass enum, in this
case we're supposed to use the QERR_ macro for compatibility in the wire.
On the other hand, this is a new command so I'm not completely sure
this matters (in doubt we should do it though).
- Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support., (continued)
- Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support., Paolo Bonzini, 2012/10/12
- Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support., Gerd Hoffmann, 2012/10/12
- Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support., Paolo Bonzini, 2012/10/12
- Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support., Gerd Hoffmann, 2012/10/12
- [Qemu-devel] [PATCH v2] chardev: add hotplug support., Gerd Hoffmann, 2012/10/12
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Gerd Hoffmann, 2012/10/12
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Paolo Bonzini, 2012/10/12
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Paolo Bonzini, 2012/10/12
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Lei Li, 2012/10/15
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Andreas Färber, 2012/10/15
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support.,
Luiz Capitulino <=
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Eric Blake, 2012/10/15
- Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support., Paolo Bonzini, 2012/10/16
[Qemu-devel] [PATCH 1/7] serial: split serial.c, Gerd Hoffmann, 2012/10/12
[Qemu-devel] [PATCH 3/7] serial: add windows inf file for the pci card to docs, Gerd Hoffmann, 2012/10/12
[Qemu-devel] [PATCH 6/7] usb-serial: only expose device in guest when the chardev is open, Gerd Hoffmann, 2012/10/12
[Qemu-devel] [PATCH 4/7] serial: add 2x + 4x pci variant, Gerd Hoffmann, 2012/10/12
[Qemu-devel] [PATCH 2/7] serial: add pci variant, Gerd Hoffmann, 2012/10/12
Re: [Qemu-devel] [PULL 0/7] serial device hotplug patch series., Paolo Bonzini, 2012/10/12