scsi: esp: respect FIFO invariant after message phase
commitaa6905db9667687293a558c14c78b05884c2b4eb
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 13:10:24 +0000 (14 15:10 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Aug 2016 19:30:39 +0000 (9 14:30 -0500)
tree197b9fc3ce5c8e7e5662a07b66cda7e819d152e7
parente5c4e642be623670ecc474316edd777ec4cbc424
scsi: esp: respect FIFO invariant after message phase

The FIFO contains two bytes; hence the write ptr should be two bytes ahead
of the read pointer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d020aa504cec8f525b55ba2ef982c09dc847c72e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/esp.c