virtio: move common virtio properties to bus class device
commit85d1277e668106294d134a101729c6f36289da1a
authorMing Lei <ming.lei@canonical.com>
Mon, 30 Jun 2014 16:01:58 +0000 (1 00:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Jul 2014 06:13:54 +0000 (6 09:13 +0300)
treeeae8b24bffd12744c2487de19bea87a976b5745b
parent9b79a76cdbb43b0b00aaf6e9421298842fc68841
virtio: move common virtio properties to bus class device

The two common virtio features can be defined per bus, so move all
into bus class device to make code more clean.

As discussed with cornelia, s390-virtio-blk doesn't support
the two features at all, so keep s390-virtio as it.

Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> #for s390 ccw
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MST: rebase and resolve conflicts
hw/s390x/s390-virtio-bus.c
hw/s390x/virtio-ccw.c
hw/virtio/virtio-pci.c
include/hw/virtio/virtio-blk.h
include/hw/virtio/virtio-net.h
include/hw/virtio/virtio-scsi.h