Re: [Qemu-block] [Qemu-devel] [PATCH 0/3] mirror: Fix guest responsiveness during bitmap scan
On Fri, 07/10 14:16, Alexandre DERUMIER wrote: So, I think patch 3/3 is enough. (could be great to have it for qemu 2.4) Stefan, are you happy with this series? Fam
[Qemu-block] [PATCH 2/5] virtio-blk: disable scsi passthrough for 1.0 device
VIRTIO_BLK_F_SCSI was no longer supported in 1.0. So disable it. Cc: Stefan Hajnoczi stefa...@redhat.com Cc: Kevin Wolf kw...@redhat.com Cc: qemu-block@nongnu.org Signed-off-by: Jason Wang jasow...@redhat.com --- hw/block/virtio-blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 6aefda4..f30ad25 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -730,7 +730,8 @@ static uint64_t virtio_blk_get_features(VirtIODevice *vdev, uint64_t features) virtio_add_feature(features, VIRTIO_BLK_F_GEOMETRY); virtio_add_feature(features, VIRTIO_BLK_F_TOPOLOGY); virtio_add_feature(features, VIRTIO_BLK_F_BLK_SIZE); -virtio_add_feature(features, VIRTIO_BLK_F_SCSI); +if (!__virtio_has_feature(features, VIRTIO_F_VERSION_1)) +virtio_add_feature(features, VIRTIO_BLK_F_SCSI); if (s-conf.config_wce) { virtio_add_feature(features, VIRTIO_BLK_F_CONFIG_WCE); -- 2.1.4
[Qemu-block] [PATCH 3/5] virtio-blk: set VIRTIO_F_ANY_LAYOUT when 1.0 is supported
Chapter 6.3 of spec said Transitional devices MUST offer, and if offered by the device transitional drivers MUST accept the following: VIRTIO_F_ANY_LAYOUT (27) So this patch sets VIRTIO_F_ANY_LAYOUT when 1.0 is supported. Cc: Stefan Hajnoczi stefa...@redhat.com Cc: Kevin Wolf kw...@redhat.com Cc: qemu-block@nongnu.org Signed-off-by: Jason Wang jasow...@redhat.com --- hw/block/virtio-blk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index f30ad25..0f07e25 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -732,6 +732,8 @@ static uint64_t virtio_blk_get_features(VirtIODevice *vdev, uint64_t features) virtio_add_feature(features, VIRTIO_BLK_F_BLK_SIZE); if (!__virtio_has_feature(features, VIRTIO_F_VERSION_1)) virtio_add_feature(features, VIRTIO_BLK_F_SCSI); +else +virtio_add_feature(features, VIRTIO_F_ANY_LAYOUT); if (s-conf.config_wce) { virtio_add_feature(features, VIRTIO_BLK_F_CONFIG_WCE); -- 2.1.4