Re: [Qemu-block] [Qemu-devel] [PATCH] ide: coverity touchups

2015-07-13 Thread John Snow
On 07/13/2015 03:40 PM, Peter Maydell wrote: > On 13 July 2015 at 20:26, John Snow wrote: >> Just a handful of casts to quiet coverity up. >> >> s->ports should never exceed 32, but coverity doesn't know that. >> ncq_tfs->sector_count should also never exceed 64K. > > Personally I tend to mark

Re: [Qemu-block] [Qemu-devel] [PATCH] ide: coverity touchups

2015-07-13 Thread Peter Maydell
On 13 July 2015 at 20:26, John Snow wrote: > Just a handful of casts to quiet coverity up. > > s->ports should never exceed 32, but coverity doesn't know that. > ncq_tfs->sector_count should also never exceed 64K. Personally I tend to mark that kind of thing as a false positive in the coverity UI

[Qemu-block] [PATCH] ide: coverity touchups

2015-07-13 Thread John Snow
Just a handful of casts to quiet coverity up. s->ports should never exceed 32, but coverity doesn't know that. ncq_tfs->sector_count should also never exceed 64K. Why not make Coverity a happy camper, though. Signed-off-by: John Snow --- hw/ide/ahci.c | 8 hw/ide/macio.c | 2 +- 2 fi

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Michael S. Tsirkin
On Mon, Jul 13, 2015 at 03:20:59PM +0200, Cornelia Huck wrote: > On Mon, 13 Jul 2015 15:36:00 +0300 > "Michael S. Tsirkin" wrote: > > > On Mon, Jul 13, 2015 at 02:30:24PM +0200, Cornelia Huck wrote: > > > On Mon, 13 Jul 2015 15:22:52 +0300 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Mon,

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Paolo Bonzini
On 13/07/2015 16:41, Cornelia Huck wrote: > On Mon, 13 Jul 2015 16:34:30 +0200 > Paolo Bonzini wrote: >> On 13/07/2015 15:20, Cornelia Huck wrote: >>> This would imply that any transitional device cannot offer scsi, >>> doesn't it? >>> >>> We have two layers interacting here: virtio-blk which ma

Re: [Qemu-block] [PATCH 1/2] atapi: abort transfers with 0 byte limits

2015-07-13 Thread John Snow
On 07/13/2015 06:18 AM, Kevin Wolf wrote: > Am 11.07.2015 um 03:05 hat John Snow geschrieben: >> We're supposed to abort on transfers like this, unless we fill >> Word 125 of our IDENTIFY data with a default transfer size, which >> we don't currently do. >> >> This is an ATA error, not a SCSI/ATA

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Cornelia Huck
On Mon, 13 Jul 2015 16:34:30 +0200 Paolo Bonzini wrote: > > > On 13/07/2015 15:20, Cornelia Huck wrote: > > This would imply that any transitional device cannot offer scsi, > > doesn't it? > > > > We have two layers interacting here: virtio-blk which may or may not > > offer scsi support, and

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Paolo Bonzini
On 13/07/2015 15:20, Cornelia Huck wrote: > This would imply that any transitional device cannot offer scsi, > doesn't it? > > We have two layers interacting here: virtio-blk which may or may not > offer scsi support, and the transport layer which may or may not offer > VERSION_1 support. Failin

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Cornelia Huck
On Mon, 13 Jul 2015 15:36:00 +0300 "Michael S. Tsirkin" wrote: > On Mon, Jul 13, 2015 at 02:30:24PM +0200, Cornelia Huck wrote: > > On Mon, 13 Jul 2015 15:22:52 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Jul 13, 2015 at 01:51:56PM +0200, Cornelia Huck wrote: > > > > On Mon, 13 Jul

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Michael S. Tsirkin
On Mon, Jul 13, 2015 at 02:30:24PM +0200, Cornelia Huck wrote: > On Mon, 13 Jul 2015 15:22:52 +0300 > "Michael S. Tsirkin" wrote: > > > On Mon, Jul 13, 2015 at 01:51:56PM +0200, Cornelia Huck wrote: > > > On Mon, 13 Jul 2015 11:56:51 +0200 > > > Kevin Wolf wrote: > > > > > > > Am 13.07.2015 um

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Cornelia Huck
On Mon, 13 Jul 2015 15:22:52 +0300 "Michael S. Tsirkin" wrote: > On Mon, Jul 13, 2015 at 01:51:56PM +0200, Cornelia Huck wrote: > > On Mon, 13 Jul 2015 11:56:51 +0200 > > Kevin Wolf wrote: > > > > > Am 13.07.2015 um 11:00 hat Jason Wang geschrieben: > > > > > > > > > > > > On 07/13/2015 03:46

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Michael S. Tsirkin
On Mon, Jul 13, 2015 at 01:51:56PM +0200, Cornelia Huck wrote: > On Mon, 13 Jul 2015 11:56:51 +0200 > Kevin Wolf wrote: > > > Am 13.07.2015 um 11:00 hat Jason Wang geschrieben: > > > > > > > > > On 07/13/2015 03:46 PM, Michael S. Tsirkin wrote: > > > > On Mon, Jul 13, 2015 at 01:46:48PM +0800,

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Cornelia Huck
On Mon, 13 Jul 2015 11:56:51 +0200 Kevin Wolf wrote: > Am 13.07.2015 um 11:00 hat Jason Wang geschrieben: > > > > > > On 07/13/2015 03:46 PM, Michael S. Tsirkin wrote: > > > On Mon, Jul 13, 2015 at 01:46:48PM +0800, Jason Wang wrote: > > >> VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So d

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Michael S. Tsirkin
On Mon, Jul 13, 2015 at 05:00:51PM +0800, Jason Wang wrote: > > > On 07/13/2015 03:46 PM, Michael S. Tsirkin wrote: > > On Mon, Jul 13, 2015 at 01:46:48PM +0800, Jason Wang wrote: > >> VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So disable it. > >> > >> Cc: Stefan Hajnoczi > >> Cc: Kevin W

Re: [Qemu-block] [PATCH 1/2] atapi: abort transfers with 0 byte limits

2015-07-13 Thread Kevin Wolf
Am 11.07.2015 um 03:05 hat John Snow geschrieben: > We're supposed to abort on transfers like this, unless we fill > Word 125 of our IDENTIFY data with a default transfer size, which > we don't currently do. > > This is an ATA error, not a SCSI/ATAPI one. > See ATA8-ACS3 sections 7.17.6.49 or 7.21

[Qemu-block] RFC chaning zlib windowBits for QCOW2

2015-07-13 Thread Peter Lieven
Hi, I was experimenting a little with optimized zlib versions (like zlib-ng) to optimize the speed of compressed qcow2 generation. I found out that chaning the windowBits from -12 to -15 alone increases compression speed by about 15% while lowering the compressed size by about 6%. As a test ca

Re: [Qemu-block] [Qemu-devel] [PATCH RFC 4/4] aio-posix: Use epoll in aio_poll

2015-07-13 Thread Stefan Hajnoczi
On Fri, Jul 10, 2015 at 08:46:44AM +0800, Fam Zheng wrote: > On Wed, 07/08 11:58, Stefan Hajnoczi wrote: > > On Wed, Jul 08, 2015 at 09:01:27AM +0800, Fam Zheng wrote: > > > On Tue, 07/07 16:08, Stefan Hajnoczi wrote: > > > > > +#define EPOLL_BATCH 128 > > > > > +static bool aio_poll_epoll(AioConte

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Kevin Wolf
Am 13.07.2015 um 11:00 hat Jason Wang geschrieben: > > > On 07/13/2015 03:46 PM, Michael S. Tsirkin wrote: > > On Mon, Jul 13, 2015 at 01:46:48PM +0800, Jason Wang wrote: > >> VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So disable it. > >> > >> Cc: Stefan Hajnoczi > >> Cc: Kevin Wolf > >>

Re: [Qemu-block] [Qemu-devel] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Jason Wang
On 07/13/2015 03:46 PM, Michael S. Tsirkin wrote: > On Mon, Jul 13, 2015 at 01:46:48PM +0800, Jason Wang wrote: >> VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So disable it. >> >> Cc: Stefan Hajnoczi >> Cc: Kevin Wolf >> Cc: qemu-block@nongnu.org >> Signed-off-by: Jason Wang > Interestin

Re: [Qemu-block] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device

2015-07-13 Thread Michael S. Tsirkin
On Mon, Jul 13, 2015 at 01:46:48PM +0800, Jason Wang wrote: > VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So disable it. > > Cc: Stefan Hajnoczi > Cc: Kevin Wolf > Cc: qemu-block@nongnu.org > Signed-off-by: Jason Wang Interesting, I noticed we have a field scsi - see commit 1ba1f