virtio: add a wrapper for virtio-backend initialization

Enterprise / Virtualization / QEMU - Gonglei [huawei.com] - 30 September 2014 04:09 UTC

For better code sharing, add a helper function that handles reference counting of the virtio backend for virtio proxy devices.

Cc: Cornelia Huck Cc: Michael S. Tsirkin

c8075ca virtio: add a wrapper for virtio-backend initialization
hw/s390x/s390-virtio-bus.c | 42 ++++++++++++++++---------------------
hw/s390x/virtio-ccw.c | 42 ++++++++++++++++---------------------
hw/virtio/virtio-pci.c | 49 +++++++++++++++++++-------------------------
hw/virtio/virtio.c | 11 ++++++++++
include/hw/virtio/virtio.h | 3 +++
5 files changed, 71 insertions(+), 76 deletions(-)

Upstream: git.qemu.org


  • Share