[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/7] qdev-monitor: Stop error avalance in qbus_f
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 3/7] qdev-monitor: Stop error avalance in qbus_find_recursive() |
Date: |
Mon, 08 Jun 2015 13:35:31 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 06/08/2015 12:57 PM, Markus Armbruster wrote:
> Reproducer:
>
> $ qemu-system-x86_64 -nodefaults -device virtio-rng-pci -device
> virtio-rng-pci -device virtio-rng-device,bus=virtio-bus
> qemu-system-x86_64: -device virtio-rng-device,bus=virtio-bus: Bus
> 'virtio-bus' is full
> qemu-system-x86_64: -device virtio-rng-device,bus=virtio-bus: Bus
> 'virtio-bus' is full
> qemu-system-x86_64: -device virtio-rng-device,bus=virtio-bus: Bus
> 'virtio-bus' not found
>
> qbus_find_recursive() reports the "is full" error itself, and leaves
> reporting "not found" to its caller. The result is confusion. Write
> it a function contract that permits leaving all error reporting to the
> caller, and implement it. Update callers to detect and report "is
> full".
>
> Screwed up when commit 1395af6 added the max_dev limit and the "is
> full" error condition to enforce it.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> qdev-monitor.c | 62
> ++++++++++++++++++++++++++++++++++++----------------------
> 1 file changed, 39 insertions(+), 23 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 0/7] qdev: Mostly wean off QError, Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 6/7] qdev-monitor: Propagate errors through set_property(), Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 2/7] qdev: Un-deprecate qdev_init_nofail(), Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 4/7] qdev-monitor: Fix check for full bus, Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 3/7] qdev-monitor: Stop error avalance in qbus_find_recursive(), Markus Armbruster, 2015/06/08
- Re: [Qemu-devel] [PATCH 3/7] qdev-monitor: Stop error avalance in qbus_find_recursive(),
Eric Blake <=
- [Qemu-devel] [PATCH 5/7] qdev-monitor: Convert qbus_find() to Error, Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 1/7] qdev: Deprecated qdev_init() is finally unused, drop, Markus Armbruster, 2015/06/08
- [Qemu-devel] [PATCH 7/7] qdev-monitor: Propagate errors through qdev_device_add(), Markus Armbruster, 2015/06/08