virtio: make bindings typesafe
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 17 Dec 2012 11:01:07 +0000 (13:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 20 Dec 2012 07:20:01 +0000 (09:20 +0200)
commitd2a0ccc613ccc48c7240f99e1ce05e0acce6e2a1
treef70e87f8d687d6b0cccd09b62308d5fb0d73c32e
parent27dd7730582be85c7d4f680f5f71146629809c86
virtio: make bindings typesafe

Move bindings from opaque to DeviceState.
This gives us better type safety with no performance cost.
Add macros to make future QOM work easier.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/s390-virtio-bus.c
hw/virtio-pci.c
hw/virtio.c
hw/virtio.h