summaryrefslogtreecommitdiffstats
path: root/cpu-common.h
diff options
context:
space:
mode:
authorJason Wang2011-05-18 07:57:37 +0200
committerMichael S. Tsirkin2011-06-12 09:33:38 +0200
commitd3674c5754775eb65ec2f2fd5f8cfe9b032ca0b1 (patch)
treebb074dc6c76acef80cd297fa001f80ef0d44886e /cpu-common.h
parentvirtio: guard against negative vq notifies (diff)
downloadqemu-d3674c5754775eb65ec2f2fd5f8cfe9b032ca0b1.tar.gz
qemu-d3674c5754775eb65ec2f2fd5f8cfe9b032ca0b1.tar.xz
qemu-d3674c5754775eb65ec2f2fd5f8cfe9b032ca0b1.zip
virtio: correctly initialize vm_running
Current vm_running was not explicitly initialized and its value was changed by vm state notifier, this may confuse the virtio device being hotplugged such as virtio-net with vhost backend as it may think the vm was not running. Solve this by initialize this value explicitly in virtio_common_init(). Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'cpu-common.h')
0 files changed, 0 insertions, 0 deletions