Re: [PATCH] scsi-disk: convert more errno values back to SCSI statuses

2020-11-13 Thread Paolo Bonzini
On 12/11/20 16:04, Hannes Reinecke wrote: On 11/12/20 10:52 AM, Paolo Bonzini wrote: Well, ironically I'm currently debugging a customer escalation which touches exactly this area. It revolves more around the SG_IO handling; Technically this patch is for *non* passthrough, but yeah it's a simi

Re: [PATCH] scsi-disk: convert more errno values back to SCSI statuses

2020-11-12 Thread Hannes Reinecke
On 11/12/20 10:52 AM, Paolo Bonzini wrote: Linux has some OS-specific (and sometimes weird) mappings for various SCSI statuses and sense codes. The most important is probably RESERVATION CONFLICT. Add them so that they can be reported back to the guest kernel. Cc: Hannes Reinecke Signed-off-b

[PATCH] scsi-disk: convert more errno values back to SCSI statuses

2020-11-12 Thread Paolo Bonzini
Linux has some OS-specific (and sometimes weird) mappings for various SCSI statuses and sense codes. The most important is probably RESERVATION CONFLICT. Add them so that they can be reported back to the guest kernel. Cc: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-disk.c |