[PATCH] kvm tools: Add abstract virtio transport layer

2011-11-09 Thread Sasha Levin
Since virtio-mmio was introduced in 3.2, virtio-pci isn't the only transport layer between the kernel and virtio devices. This patch adds an abstract virtio-transport layer which allows to easily use different transports while making it transparent to the device. This is the first step in adding

Re: [PATCH] kvm tools: Add abstract virtio transport layer

2011-11-09 Thread Pekka Enberg
On Wed, Nov 9, 2011 at 9:03 PM, Sasha Levin levinsasha...@gmail.com wrote: +struct virtio_trans { +       void                    *virtio; +       enum VIRTIO_TRANS_TYPE  type; +       struct virtio_trans_ops trans_ops; +       struct virtio_ops       virtio_ops; +}; Why are the ops not