[PATCH 0/5] Add support for fine grained discard control of qemu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* The 'discard_granularity' property is available to 'scsi-hd', 'virtio-blk' and  'ide-*'.
It impacts the 'Optimal Unmap Granularity' field in the block limits VPD page:
  Optimal Unmap Granularity = discard granularity / logical block size
      
* The 'max_unmap_size' property is available to 'scsi-hd' and 'scsi-block'.
It impacts the 'Maximum unmap LBA count' field in the block limits VPD page:
  Maximum unmap LBA count = max unmap size / logical block size

Lin Ma (5):
  conf: Add support for discard granularity
  qemu: Add Support for discard granularity
  conf: Add support for unmap limit
  qemu: caps: Add max_unmap_size property of scsi-disk
  qemu: Add support for max_unmap_size property of scsi-disk

 docs/formatdomain.html.in                     | 18 +++++++-
 docs/schemas/domaincommon.rng                 | 10 +++++
 src/conf/domain_conf.c                        | 43 ++++++++++++++++++-
 src/conf/domain_conf.h                        |  2 +
 src/qemu/qemu_capabilities.c                  |  2 +
 src/qemu/qemu_capabilities.h                  |  1 +
 src/qemu/qemu_command.c                       | 13 ++++++
 src/qemu/qemu_domain.c                        |  4 ++
 .../caps_2.1.1.x86_64.xml                     |  1 +
 .../caps_2.10.0.aarch64.xml                   |  1 +
 .../caps_2.10.0.ppc64.xml                     |  1 +
 .../caps_2.10.0.s390x.xml                     |  1 +
 .../caps_2.10.0.x86_64.xml                    |  1 +
 .../caps_2.11.0.s390x.xml                     |  1 +
 .../caps_2.11.0.x86_64.xml                    |  1 +
 .../caps_2.12.0.aarch64.xml                   |  1 +
 .../caps_2.12.0.ppc64.xml                     |  1 +
 .../caps_2.12.0.s390x.xml                     |  1 +
 .../caps_2.12.0.x86_64.xml                    |  1 +
 .../caps_2.4.0.x86_64.xml                     |  1 +
 .../caps_2.5.0.x86_64.xml                     |  1 +
 .../caps_2.6.0.aarch64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_2.6.0.ppc64.xml |  1 +
 .../caps_2.6.0.x86_64.xml                     |  1 +
 .../qemucapabilitiesdata/caps_2.7.0.s390x.xml |  1 +
 .../caps_2.7.0.x86_64.xml                     |  1 +
 .../qemucapabilitiesdata/caps_2.8.0.s390x.xml |  1 +
 .../caps_2.8.0.x86_64.xml                     |  1 +
 .../qemucapabilitiesdata/caps_2.9.0.ppc64.xml |  1 +
 .../qemucapabilitiesdata/caps_2.9.0.s390x.xml |  1 +
 .../caps_2.9.0.x86_64.xml                     |  1 +
 .../qemucapabilitiesdata/caps_3.0.0.ppc64.xml |  1 +
 .../caps_3.0.0.riscv32.xml                    |  1 +
 .../caps_3.0.0.riscv64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_3.0.0.s390x.xml |  1 +
 .../caps_3.0.0.x86_64.xml                     |  1 +
 .../qemucapabilitiesdata/caps_3.1.0.ppc64.xml |  1 +
 .../caps_3.1.0.x86_64.xml                     |  1 +
 .../caps_4.0.0.aarch64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_4.0.0.ppc64.xml |  1 +
 .../caps_4.0.0.riscv32.xml                    |  1 +
 .../caps_4.0.0.riscv64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_4.0.0.s390x.xml |  1 +
 .../caps_4.0.0.x86_64.xml                     |  1 +
 .../caps_4.1.0.x86_64.xml                     |  1 +
 .../caps_4.2.0.aarch64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_4.2.0.ppc64.xml |  1 +
 .../qemucapabilitiesdata/caps_4.2.0.s390x.xml |  1 +
 .../caps_4.2.0.x86_64.xml                     |  1 +
 .../caps_5.0.0.aarch64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_5.0.0.ppc64.xml |  1 +
 .../caps_5.0.0.riscv64.xml                    |  1 +
 .../caps_5.0.0.x86_64.xml                     |  1 +
 .../caps_5.1.0.x86_64.xml                     |  1 +
 tests/qemuxml2argvdata/disk-blockio.args      |  2 +-
 tests/qemuxml2argvdata/disk-blockio.xml       |  2 +-
 .../disk-scsi-disk-max_unmap_size.args        | 32 ++++++++++++++
 .../disk-scsi-disk-max_unmap_size.xml         | 28 ++++++++++++
 tests/qemuxml2argvtest.c                      |  4 ++
 59 files changed, 203 insertions(+), 4 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/disk-scsi-disk-max_unmap_size.args
 create mode 100644 tests/qemuxml2argvdata/disk-scsi-disk-max_unmap_size.xml

-- 
2.26.0





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux