Revision baf0b55a hw/s390-virtio.c

b/hw/s390-virtio.c
99 99
        break;
100 100
    case KVM_S390_VIRTIO_RESET:
101 101
    {
102
        /* Virtio_reset resets the internal addresses, so we'd have to sync
103
           them up again. We don't want to reallocate a vring though, so let's
104
           just not reset. */
105
        /* virtio_reset(dev->vdev); */
102
        VirtIOS390Device *dev;
103

  
104
        dev = s390_virtio_bus_find_mem(s390_bus, mem);
105
        virtio_reset(dev->vdev);
106
        s390_virtio_device_sync(dev);
106 107
        break;
107 108
    }
108 109
    case KVM_S390_VIRTIO_SET_STATUS:

Also available in: Unified diff