]> git.proxmox.com Git - mirror_qemu.git/commit
virtio: Don't change "started" flag on virtio_vmstate_change()
authorXie Yongji <xieyongji@baidu.com>
Wed, 26 Jun 2019 02:31:30 +0000 (10:31 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jul 2019 21:00:32 +0000 (17:00 -0400)
commit4c5cf37b504b1444b031d5c9af6b6ad2f171d006
treef9a6d4972ed0ebf811e5a7986f6f2e14b5ebc87d
parent8b04e2c797b01a4baf379ec4f40b3f0e9cdf7a25
virtio: Don't change "started" flag on virtio_vmstate_change()

We will call virtio_set_status() on virtio_vmstate_change().
The "started" flag should not be changed in this case. Otherwise,
we may get an incorrect value when we set "started" flag but
not set DRIVER_OK in source VM.

Signed-off-by: Xie Yongji <xieyongji@baidu.com>
Message-Id: <20190626023130.31315-6-xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c