mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
virtio: add set_status callback
vhost net backend needs to be notified when frontend status changes. Add a callback, similar to set_features. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1cbdabe203
commit
3e607cb503
4 changed files with 14 additions and 4 deletions
|
@ -242,7 +242,7 @@ void s390_virtio_device_update_status(VirtIOS390Device *dev)
|
|||
VirtIODevice *vdev = dev->vdev;
|
||||
uint32_t features;
|
||||
|
||||
vdev->status = ldub_phys(dev->dev_offs + VIRTIO_DEV_OFFS_STATUS);
|
||||
virtio_set_status(vdev, ldub_phys(dev->dev_offs + VIRTIO_DEV_OFFS_STATUS));
|
||||
|
||||
/* Update guest supported feature bitmap */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue