summaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-04-26 18:27:40 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2013-05-07 06:43:09 -0500
commitd7108d90100d5bac5965abef5ed73f2602adae14 (patch)
treecbe64c9178d700172b24bc5c65b872161b094b72 /qga
parentfd8192a5a868ddbb711abbf4a871b09bbb1dae04 (diff)
downloadqemu-d7108d90100d5bac5965abef5ed73f2602adae14.tar.gz
virtio-net: properly check the vhost status during status set
Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost also when the peer's link is down. But the check was not done properly, the vhost were only started when: 1) peer's link is not down 2) virtio-net has already been started. Since == have a higher precedence than &&, place a brace to make sure both the conditions were met then does the check. This fixes the crash when doing a savem after set the link off which let qemu crash and complains: virtio_net_save: Assertion `!n->vhost_started' failed. Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-id: 1366972060-21606-1-git-send-email-jasowang@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qga')
0 files changed, 0 insertions, 0 deletions