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)
commitccf42a72aa1af70a53cfd6df9d27125afb819fc1
tree1b15520168e402784bf4b038b154d1b7122cedea
parent862cf6f6df8d045686c5fdb26390b13bc85ecd50
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