Fix bug reported by Mike Brown <mbrown@vmware.com>, in which a
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 13 Jul 2005 17:40:23 +0000 (17:40 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 13 Jul 2005 17:40:23 +0000 (17:40 +0000)
commit00562fc78061b83b6fff5231d5581ad55497265a
tree0015e21b6101fb56f262bded30a5c7c2aa17edc4
parentb2b72dd2a4460d2e670aad3444270e2aefa5fa85
Fix bug reported by Mike Brown <mbrown@vmware.com>, in which a
secondary device was always detected on an IDE channel that had a
primary device.  Both qemu and Bochs report error/lbam/lbah register
values that are invalid for a device that exists in such a situation,
but GSX Server reports 1/0/0, which indicates a valid device.
Fortunately, GSX Server does report a useful value in the status
register, so the bug fix adds a check for that value also.
src/devices/disk.c