[libvirt] [PATCH v5 0/2] Add support for qcow2 cache

Liu Qing posted 2 patches 6 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1505365704-11941-1-git-send-email-liuqing@huayun.com
There is a newer version of this series
docs/formatdomain.html.in                          | 41 +++++++++
docs/schemas/domaincommon.rng                      | 35 ++++++++
src/conf/domain_conf.c                             | 96 ++++++++++++++++++++--
src/qemu/qemu_capabilities.c                       | 11 +++
src/qemu/qemu_capabilities.h                       |  5 ++
src/qemu/qemu_command.c                            | 33 ++++++++
src/qemu/qemu_driver.c                             |  5 ++
src/util/virstoragefile.c                          |  3 +
src/util/virstoragefile.h                          |  6 ++
tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml   |  3 +
.../caps_2.6.0-gicv2.aarch64.xml                   |  3 +
.../caps_2.6.0-gicv3.aarch64.xml                   |  3 +
tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml  |  3 +
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml   |  3 +
tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml    |  3 +
tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml   |  3 +
tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml    |  3 +
tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml   |  3 +
tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.xml  |  3 +
tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml    |  3 +
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml   |  3 +
.../qemuxml2argv-disk-drive-qcow2-cache.args       | 28 +++++++
.../qemuxml2argv-disk-drive-qcow2-cache.xml        | 43 ++++++++++
tests/qemuxml2argvtest.c                           |  4 +
.../qemuxml2xmlout-disk-drive-qcow2-cache.xml      | 43 ++++++++++
tests/qemuxml2xmltest.c                            |  1 +
26 files changed, 385 insertions(+), 5 deletions(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-qcow2-cache.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-qcow2-cache.xml
create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-drive-qcow2-cache.xml
[libvirt] [PATCH v5 0/2] Add support for qcow2 cache
Posted by Liu Qing 6 years, 7 months ago
Qcow2 small IO random write performance will drop dramatically if the l2
cache table could not cover the whole disk. This will be a lot of l2
cache table RW operations if cache miss happens frequently.
 
This patch exports the qcow2 driver parameter
l2-cache-size/refcount-cache-size, first added in Qemu 2.2, and
cache-clean-interval, first added in Qemu 2.5, in libvirt.

change since v4: updated doc and did code adjustment based on John
Ferlan's review.

Liu Qing (2):
  conf, docs: Add qcow2 cache configuration support
  qemu: add capability checking for qcow2 cache configuration

 docs/formatdomain.html.in                          | 41 +++++++++
 docs/schemas/domaincommon.rng                      | 35 ++++++++
 src/conf/domain_conf.c                             | 96 ++++++++++++++++++++--
 src/qemu/qemu_capabilities.c                       | 11 +++
 src/qemu/qemu_capabilities.h                       |  5 ++
 src/qemu/qemu_command.c                            | 33 ++++++++
 src/qemu/qemu_driver.c                             |  5 ++
 src/util/virstoragefile.c                          |  3 +
 src/util/virstoragefile.h                          |  6 ++
 tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml   |  3 +
 .../caps_2.6.0-gicv2.aarch64.xml                   |  3 +
 .../caps_2.6.0-gicv3.aarch64.xml                   |  3 +
 tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml  |  3 +
 tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml   |  3 +
 tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml    |  3 +
 tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml   |  3 +
 tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml    |  3 +
 tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml   |  3 +
 tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.xml  |  3 +
 tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml    |  3 +
 tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml   |  3 +
 .../qemuxml2argv-disk-drive-qcow2-cache.args       | 28 +++++++
 .../qemuxml2argv-disk-drive-qcow2-cache.xml        | 43 ++++++++++
 tests/qemuxml2argvtest.c                           |  4 +
 .../qemuxml2xmlout-disk-drive-qcow2-cache.xml      | 43 ++++++++++
 tests/qemuxml2xmltest.c                            |  1 +
 26 files changed, 385 insertions(+), 5 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-qcow2-cache.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-qcow2-cache.xml
 create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-drive-qcow2-cache.xml

-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list