Re: [PATCH v2 07/11] scsi-disk: allow truncated MODE SELECT requests

2022-05-30 Thread Mark Cave-Ayland
On 26/05/2022 13:06, Paolo Bonzini wrote: On 4/24/22 18:49, Mark Cave-Ayland wrote: According to [1] this truncated request is accepted on real hardware whereas in QEMU it generates an INVALID_PARAM_LEN sense code which causes A/UX to get stuck in a loop retrying the command in an attempt to su

Re: [PATCH v2 07/11] scsi-disk: allow truncated MODE SELECT requests

2022-05-26 Thread Paolo Bonzini
On 4/24/22 18:49, Mark Cave-Ayland wrote: According to [1] this truncated request is accepted on real hardware whereas in QEMU it generates an INVALID_PARAM_LEN sense code which causes A/UX to get stuck in a loop retrying the command in an attempt to succeed. That's for MODE SENSE, not MODE SEL

[PATCH v2 07/11] scsi-disk: allow truncated MODE SELECT requests

2022-04-24 Thread Mark Cave-Ayland
When A/UX configures the CDROM device it sends a truncated MODE SELECT request for page 1 (MODE_PAGE_R_W_ERROR) which is only 6 bytes in length rather than 10. This seems to be due to bug in Apple's code which calculates the CDB message length incorrectly. According to [1] this truncated request i