For better code sharing, add a helper function that handles reference counting of the virtio backend for virtio proxy devices.
Cc: Cornelia Huck
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