virtio-pci: thinko fix
commit348af56faea99631c4326ac389945799b6539295
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 11 Jan 2010 15:57:41 +0000 (11 17:57 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 12 Jan 2010 19:30:08 +0000 (12 13:30 -0600)
treea6fe400f0074e6881f4e8bdee9f4dd2661043c8a
parent09866b9baa1ff30c67ef79b6045578894812446e
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>
(cherry picked from commit 49e75cf38848e6da70c0e9ddb4d994e9d71a9625)
hw/virtio-pci.c