Re: [Qemu-devel] [PATCH] scsi-block: Handle error from host devices

2018-04-03 Thread Fam Zheng
On Tue, 04/03 17:41, Daniel Henrique Barboza wrote: > Hi Fam, > > I've tried this patch and found issues when booting a VM using SCSI > passthrough. This is the backtrace from gdb from the segfault that happens > in the middle of kernel boot: > > Thread 1 "qemu-system-ppc" received signal SIGSEGV

Re: [Qemu-devel] [PATCH] scsi-block: Handle error from host devices

2018-04-03 Thread Daniel Henrique Barboza
Hi Fam, I've tried this patch and found issues when booting a VM using SCSI passthrough. This is the backtrace from gdb from the segfault that happens in the middle of kernel boot: Thread 1 "qemu-system-ppc" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x77ff63a0 (LWP

[Qemu-devel] [PATCH] scsi-block: Handle error from host devices

2018-04-01 Thread Fam Zheng
The callback of blk_aio_ioctl is not sensible to SCSI errors, so werror=stop doesn't work if ioctl returns 0 but the scsi status is error. Peek at the sg_io_hdr_t fields and amend ret to fix that. Signed-off-by: Fam Zheng --- hw/scsi/scsi-disk.c | 20 +++- 1 file changed, 19 ins