mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
virtio: remove virtiobindings.
This remove virtio-bindings, and use class instead. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Message-id: 1366791683-5350-6-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
181103cd52
commit
1c81944983
11 changed files with 73 additions and 122 deletions
|
@ -55,8 +55,6 @@ static const TypeInfo s390_virtio_bus_info = {
|
|||
.instance_size = sizeof(VirtIOS390Bus),
|
||||
};
|
||||
|
||||
static const VirtIOBindings virtio_s390_bindings;
|
||||
|
||||
static ram_addr_t s390_virtio_device_num_vq(VirtIOS390Device *dev);
|
||||
|
||||
/* length of VirtIO device pages */
|
||||
|
@ -140,7 +138,6 @@ static int s390_virtio_device_init(VirtIOS390Device *dev, VirtIODevice *vdev)
|
|||
|
||||
bus->dev_offs += dev_len;
|
||||
|
||||
virtio_bind_device(vdev, &virtio_s390_bindings, DEVICE(dev));
|
||||
dev->host_features = virtio_bus_get_vdev_features(&dev->bus,
|
||||
dev->host_features);
|
||||
s390_virtio_device_sync(dev);
|
||||
|
@ -466,11 +463,6 @@ static unsigned virtio_s390_get_features(DeviceState *d)
|
|||
|
||||
/**************** S390 Virtio Bus Device Descriptions *******************/
|
||||
|
||||
static const VirtIOBindings virtio_s390_bindings = {
|
||||
.notify = virtio_s390_notify,
|
||||
.get_features = virtio_s390_get_features,
|
||||
};
|
||||
|
||||
static Property s390_virtio_net_properties[] = {
|
||||
DEFINE_NIC_PROPERTIES(VirtIONetS390, vdev.nic_conf),
|
||||
DEFINE_VIRTIO_NET_FEATURES(VirtIOS390Device, host_features),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue