virtio-pci: thinko fix
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 11 Jan 2010 15:57:41 +0000 (17:57 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Jan 2010 19:41:00 +0000 (13:41 -0600)
commitacd61455f13f25c864e7b28b442e7ac9fd5f7c37
tree641291b47601bd85d6a1ce2489febaca74b98d9d
parent01262e880917ec47cd22907490a6be7452a7178c
virtio-pci: thinko fix

Since patch ed757e140c0ada220f213036e4497315d24ca8bct, virtio will
sometimes clear all status registers on bus master disable, which loses
information such as VIRTIO_CONFIG_S_FAILED bit.  This is a result of
a patch being misapplied: code uses !  instead of ~ for bit
operations as in Yan's original patch.  This obviously does not make
sense.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c