Don't test for VIRTIO__STATUS_STOP right after setting it. Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@xxxxxxx> --- virtio/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virtio/core.c b/virtio/core.c index 90a661d1..40532664 100644 --- a/virtio/core.c +++ b/virtio/core.c @@ -247,8 +247,7 @@ void virtio_notify_status(struct kvm *kvm, struct virtio_device *vdev, * Reset virtqueues and stop all traffic now, so that the device * can safely reset the backend in notify_status(). */ - if (ext_status & VIRTIO__STATUS_STOP) - vdev->ops->reset(kvm, vdev); + vdev->ops->reset(kvm, vdev); } if (vdev->ops->notify_status) -- 2.36.1