diff options
author | Roger Pau Monne | 2021-01-18 16:33:30 +0100 |
---|---|---|
committer | Kevin Wolf | 2021-02-15 15:10:14 +0100 |
commit | 7f22201ac85186dd476d5ff8da278ab603df72b6 (patch) | |
tree | 8cd454627085bb8322a76365264d6b793ed9268c /tests/qemu-iotests | |
parent | hw/ide/ahci: map cmd_fis as DMA_DIRECTION_TO_DEVICE (diff) | |
download | qemu-7f22201ac85186dd476d5ff8da278ab603df72b6.tar.gz qemu-7f22201ac85186dd476d5ff8da278ab603df72b6.tar.xz qemu-7f22201ac85186dd476d5ff8da278ab603df72b6.zip |
xen-block: fix reporting of discard feature
Linux blkfront expects both "discard-granularity" and
"discard-alignment" present on xenbus in order to properly enable the
feature, not exposing "discard-alignment" left some Linux blkfront
versions with a broken discard setup. This has also been addressed in
Linux with:
https://lore.kernel.org/lkml/20210118151528.81668-1-roger.pau@citrix.com/T/#u
Fix QEMU to report a "discard-alignment" of 0, in order for it to work
with older Linux frontends.
Reported-by: Arthur Borsboom <arthurborsboom@gmail.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Message-Id: <20210118153330.82324-1-roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests')
0 files changed, 0 insertions, 0 deletions