[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Converting PCIDevice to VirtIODevice
From: |
Sameeh Jubran |
Subject: |
[Qemu-devel] Converting PCIDevice to VirtIODevice |
Date: |
Wed, 26 Sep 2018 18:33:42 +0300 |
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
and through it access the virtio-device, but couldn't find any elegant
way of doing so.
Thanks!
- [Qemu-devel] Converting PCIDevice to VirtIODevice,
Sameeh Jubran <=