vfio: Do not reattempt a failed rom read
commite638073c569e801ce9def2016a84f955cbbca779
authorBandan Das <bsd@redhat.com>
Wed, 15 Jan 2014 17:11:52 +0000 (15 10:11 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 15 Jan 2014 17:11:52 +0000 (15 10:11 -0700)
tree0d02ee6f884d2fac77ce56db8b56f8fa9e6f804a
parentd20b43dfea1587b561aae17e4fa0f7407779d253
vfio: Do not reattempt a failed rom read

During lazy rom loading, if rom read fails, and the
guest attempts a read again, vfio will again attempt it.
Add a boolean to prevent this. There could be a case where
a failed rom read might succeed the next time because of
a device reset or such, but it's best to exclude unpredictable
behavior

Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/misc/vfio.c