virtio-pci: fix bus master bug setting on load
commit8a911107386b5c7a78a629f0fe29381cf0ea5f6f
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 17 Jun 2010 15:15:02 +0000 (17 09:15 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 22 Jun 2010 20:15:51 +0000 (22 15:15 -0500)
treee33728efc7fd993cf7269ababba66918aabfb28a
parent511c0231033eb8fbdf2a615b429e1bc6b5aad52c
virtio-pci: fix bus master bug setting on load

The comment suggests we're checking for the driver in the ready
state and bus master disabled, but the code is checking that it's
not in the ready state.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Found-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c