Re: [Qemu-devel] Converting PCIDevice to VirtIODevice

2018-09-26 Thread Laszlo Ersek
On 09/26/18 17:33, Sameeh Jubran wrote: > Hi All, > > I have used the function "pci_qdev_find_device" to find a device using > it's id. This is a virtio device and I'm trying to convert it to > VirtIODevice. > > What's the best way to do this? Simply converting it to DeviceState > doesn't work an

Re: [Qemu-devel] Converting PCIDevice to VirtIODevice

2018-09-26 Thread Paolo Bonzini
On 26/09/2018 17:33, Sameeh Jubran wrote: > > I have used the function "pci_qdev_find_device" to find a device using > it's id. This is a virtio device and I'm trying to convert it to > VirtIODevice. > > What's the best way to do this? Simply converting it to DeviceState > doesn't work and I thin

[Qemu-devel] Converting PCIDevice to VirtIODevice

2018-09-26 Thread Sameeh Jubran
Hi All, I have used the function "pci_qdev_find_device" to find a device using it's id. This is a virtio device and I'm trying to convert it to VirtIODevice. What's the best way to do this? Simply converting it to DeviceState doesn't work and I think I should access the underlying virtio pci bus