On Mon, Jun 02, 2014 at 09:58:18AM +0200, Gerd Hoffmann wrote: > On Fr, 2014-05-30 at 20:22 +0800, arei.gong...@huawei.com wrote: > > From: Gonglei <arei.gong...@huawei.com> > > > > usb host controller should be able to support hotplug/unplug, > > as the same as the other pci devices, which not enable > > multifunction capability. > > > > BTW, the qemu have not the capability to support > > hotplug mulitfuncition pci devices at present. > > I'd like to keep hotplug disabled for the multifunction configurations. > Which means we have to switch that per device instance, not per device > class. Not sure what the best way to do that is. mst, suggestions? > > cheers, > Gerd
Override the "hotpluggable" property in some way, and teach qdev to check it? Alternatively, teach hotplug that it can fail? Again it's a question of teaching device_set_realized and qdev_unplug that these can fail. -- MST