e1000: defer packets until BM enabled
commit20302e71a5b654d7b4d0d61c7384e9dd8d112971
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Dec 2014 18:06:52 +0000 (1 20:06 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Dec 2014 13:17:06 +0000 (19 13:17 +0000)
tree24c7b84d6126942eb5de0bbbcb6917d5e90fecbf
parent58889fe50a7c5b8776cf3096a8fe611fb66c4e5c
e1000: defer packets until BM enabled

Some guests seem to set BM for e1000 after
enabling RX.
If packets arrive in the window, device is wedged.
Probably works by luck on real hardware, work around
this by making can_receive depend on BM.

Tested-by: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/e1000.c