All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Virtio-pci issue
@ 2012-05-10 11:24 Evgeny Voevodin
  2012-05-23 13:36 ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Evgeny Voevodin @ 2012-05-10 11:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kyungmin Park, Peter Maydell, Anthony Liguori, Dmitry Solodkiy

Hi, guys!

While trying to refactor virtio-pci as continuation of my RFC
virtio-mmio patch series:
http://lists.gnu.org/archive/html/qemu-devel/2012-04/msg03665.html
I've faced a problem.

I try to create virtio-pci-transport device to which virtio-blk,net,etc
could be connected. Any board could create as many transport devices as
it wants and then any actual back-end could be connected to that
transport through a provided virtio-pci.x bus. virtio-pci-transport is
derived from TYPE_PCI_DEVICE.
The problem is that if I create transport devices and wish to connect
back-ends to them, each back-end would set its properties to the class,
not to the object.
For example, vendor_id property is different for blk and net, but since
they are both have same class PCIDeviceClass, they share that property.

How to deal with this?

-- 
Kind regards,
Evgeny Voevodin,
Leading Software Engineer,
ASWG, Moscow R&D center, Samsung Electronics
e-mail: e.voevodin@samsung.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-28 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 11:24 [Qemu-devel] Virtio-pci issue Evgeny Voevodin
2012-05-23 13:36 ` Stefan Hajnoczi
2012-05-24  3:18   ` Evgeny Voevodin
2012-05-28 12:37     ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.