[PATCH 04/17] kvm tools: net: allow a mixture of pci and mmio virtio devices

2014-02-04 Thread Will Deacon
When attempting to initialise a mixture of pci and mmio virtio devices, we cannot share an ops structure, otherwise the transport-specific fields (init/exit and signal handling) will be globally set to the transport of the last registered device. This patch dynamically allocates a new ops structur

[PATCH 04/17] kvm tools: net: allow a mixture of pci and mmio virtio devices

2014-02-04 Thread Will Deacon
When attempting to initialise a mixture of pci and mmio virtio devices, we cannot share an ops structure, otherwise the transport-specific fields (init/exit and signal handling) will be globally set to the transport of the last registered device. This patch dynamically allocates a new ops structur