[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] fb0b15: virtio-blk: Respect discard granulari
From: |
Peter Maydell |
Subject: |
[Qemu-commits] [qemu/qemu] fb0b15: virtio-blk: Respect discard granularity |
Date: |
Mon, 15 Mar 2021 15:01:43 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: fb0b154c801e3447e505de420195fb7038695941
https://github.com/qemu/qemu/commit/fb0b154c801e3447e505de420195fb7038695941
Author: Akihiko Odaki <akihiko.odaki@gmail.com>
Date: 2021-03-15 (Mon, 15 Mar 2021)
Changed paths:
M hw/block/virtio-blk.c
M hw/core/machine.c
M include/hw/virtio/virtio-blk.h
Log Message:
-----------
virtio-blk: Respect discard granularity
Report the configured granularity for discard operation to the
guest. If this is not set use the block size.
Since until now we have ignored the configured discard granularity
and always reported the block size, let's add
'report-discard-granularity' property and disable it for older
machine types to avoid migration issues.
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210225001239.47046-1-akihiko.odaki@gmail.com>
Commit: 2615a5e433aeb812c300d3a48e1a88e1303e2339
https://github.com/qemu/qemu/commit/2615a5e433aeb812c300d3a48e1a88e1303e2339
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2021-03-15 (Mon, 15 Mar 2021)
Changed paths:
M hw/block/virtio-blk.c
M hw/core/machine.c
M include/hw/virtio/virtio-blk.h
Log Message:
-----------
Merge remote-tracking branch
'remotes/stefanha-gitlab/tags/block-pull-request' into staging
Pull request
# gpg: Signature made Mon 15 Mar 2021 09:50:58 GMT
# gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full]
# gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" [full]
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8
* remotes/stefanha-gitlab/tags/block-pull-request:
virtio-blk: Respect discard granularity
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/e7c6a8cf9f5c...2615a5e433ae