]> git.proxmox.com Git - qemu.git/commit
virtio-net: stop/start bh when appropriate
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Nov 2010 17:52:30 +0000 (19:52 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Dec 2010 10:47:48 +0000 (12:47 +0200)
commit783e7706937fe15523b609b545587a028a2bdd03
tree06a7ba2f6f8838db80e3d9b1e466b0af55223c9c
parent954773230484f5afeb675e9ff814c97e54e69e17
virtio-net: stop/start bh when appropriate

Avoid sending out packets, and modifying
memory, when VM is stopped.
Add assert statements to verify this does not happen.

Avoid scheduling bh when vhost-net is started.

Stop bh when driver disabled bus mastering
(we must not access memory after this).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Jason Wang <jasowang@redhat.com>
hw/virtio-net.c