[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState |
Date: |
Thu, 22 Feb 2018 17:21:37 +0000 |
On 22 February 2018 at 16:59, Alex Williamson
<address@hidden> wrote:
> On Thu, 22 Feb 2018 15:46:17 +0000
> Peter Maydell <address@hidden> wrote:
>> What type of device is only sometimes hotpluggable ?
>> The commit message says "display devices" and "consoles",
>> but I would expect those to both be types of device which
>> have a class which is never hotpluggable, so you can mark
>> them non-hotpluggable with the existing class flag rather
>> than needing a per-instance flag.
>
> With this series, a vfio-pci device optionally supports a display. The
> vfio-pci device is hotpluggable, but QEMU display support is not. So
> the solution here is to make the vfio-pci device non-hotpluggable only
> when it supports and enables a display.
Ah, I see. I don't have a good suggestion offhand, but I suspect
the patch as it stands is insufficient if we want to take the
approach it uses. For instance qdev_unplug() in qdev-monitor.c
looks directly at dc->hotpluggable to decide whether it should
refuse a user request to hot-unplug a device.
thanks
-- PMM
- [Qemu-devel] [PATCH v4 5/7] vfio/common: cleanup in vfio_region_finalize, (continued)
- [Qemu-devel] [PATCH v4 5/7] vfio/common: cleanup in vfio_region_finalize, Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 2/7] standard-headers: add drm/drm_fourcc.h, Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 3/7] ui/pixman: add qemu_drm_format_to_pixman(), Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 6/7] vfio/display: core & wireup, Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 7/7] vfio/display: adding region support, Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 1/7] linux-headers: update to 4.16-rc1, Gerd Hoffmann, 2018/02/19
- [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Gerd Hoffmann, 2018/02/19
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Gerd Hoffmann, 2018/02/22
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Peter Maydell, 2018/02/22
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Alex Williamson, 2018/02/22
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Zhenyu Wang, 2018/02/22
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Gerd Hoffmann, 2018/02/23
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Alex Williamson, 2018/02/23
- Re: [Qemu-devel] [PATCH v4 4/7] qdev: add hotpluggable to DeviceState, Gerd Hoffmann, 2018/02/26
Re: [Qemu-devel] [PATCH v4 0/7] vfio: add display support, Alex Williamson, 2018/02/19