Re: [Qemu-devel] [PATCH] SCSI: splite write_zero in unit of at most INT_MAX bytes

2014-12-09 Thread Paolo Bonzini
On 08/12/2014 10:20, Ming Lei wrote: > Currently block can not handle big write well when write > size is bigger than INT_MAX, so split the write zero into > smaller size of chunks to meet block's requirement. > > This patch fixes one WRITE SAME 16 failure in linux VM side. Can you just set max

[Qemu-devel] [PATCH] SCSI: splite write_zero in unit of at most INT_MAX bytes

2014-12-08 Thread Ming Lei
Currently block can not handle big write well when write size is bigger than INT_MAX, so split the write zero into smaller size of chunks to meet block's requirement. This patch fixes one WRITE SAME 16 failure in linux VM side. Cc: Max Reitz Signed-off-by: Ming Lei --- hw/scsi/scsi-disk.c |