Re: [Qemu-devel] Hotplug handler

2018-10-08 Thread Sameeh Jubran
Thanks for your help, turns out that the hotlpug is set by piix4 after the devices are realized. On Mon, Oct 8, 2018 at 11:28 AM Igor Mammedov wrote: > > On Sun, 7 Oct 2018 12:52:11 +0300 > Sameeh Jubran wrote: > > > This is the command line. All of the devices are wired to pci.0, there is > > no

Re: [Qemu-devel] Hotplug handler

2018-10-08 Thread Igor Mammedov
On Sun, 7 Oct 2018 12:52:11 +0300 Sameeh Jubran wrote: > This is the command line. All of the devices are wired to pci.0, there is > no pci bridge. > > According to this, Integrated Endpoints are not hot-pluggable. However I > can still use device_del to delete a device and device_add to add e1

Re: [Qemu-devel] Hotplug handler

2018-10-07 Thread Sameeh Jubran
This is the command line. All of the devices are wired to pci.0, there is no pci bridge. According to this, Integrated Endpoints are not hot-pluggable. However I can still use device_del to delete a device and device_add to add e1000 with no issues. https://github.com/qemu/qemu/blob/master/docs/p

Re: [Qemu-devel] Hotplug handler

2018-10-04 Thread Igor Mammedov
On Wed, 3 Oct 2018 19:50:58 +0300 Sameeh Jubran wrote: > Hi all, > > I am trying to get the hotplug handler of a pci device in Qemu using > "qdev_get_hotplug_handler" function. This function simply tries to get > the hotplug handler from the parent bus. For some reason it's always > null. Why it

[Qemu-devel] Hotplug handler

2018-10-03 Thread Sameeh Jubran
Hi all, I am trying to get the hotplug handler of a pci device in Qemu using "qdev_get_hotplug_handler" function. This function simply tries to get the hotplug handler from the parent bus. For some reason it's always null. Why it is not initialized? Thanks!