virtio-net: don't dma while vm is stopped
commit954773230484f5afeb675e9ff814c97e54e69e17
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Nov 2010 17:52:19 +0000 (22 19:52 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Dec 2010 10:47:48 +0000 (9 12:47 +0200)
tree327b263d65f6e0b97d895172c1a3d10932470e77
parenteff06c40d330cdbea414331337ca6f5032dbf6d7
virtio-net: don't dma while vm is stopped

DMA into memory while VM is stopped makes it
hard to debug migration (consequitive saves
result in different files).
Fixing this completely is a large effort,
this patch does this for virtio-net.

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