[libvirt] [V2 0/5] Support cache tune in libvirt

Eli Qiao liyong.qiao at intel.com
Fri Feb 3 03:47:11 UTC 2017


This series patches are for supportting CAT featues, which also
called cache tune in libvirt.

First to expose cache information which could be tuned in capabilites XML.
Then add new domain xml element support to add cacahe bank which will apply
on this libvirt domain.

This series patches add a util file `resctrl.c/h`, an interface to talk with
linux kernel's sys fs.

There are some TODO work such as logic of supportting l3code/l3data, expose
new public interface to get free cache information.

Some discussion about this feature support can be found from:
https://www.redhat.com/archives/libvir-list/2017-January/msg00644.html

Eli Qiao (5):
  Resctrl: Add some utils functions
  Resctrl: expose cache information to capabilities
  Resctrl: Add new xml element to support cache tune
  Resctrl: Add private interface to set cachebanks
  Qemu: Set cache banks

 docs/schemas/domaincommon.rng |  41 ++
 include/libvirt/virterror.h   |   1 +
 src/Makefile.am               |   1 +
 src/conf/capabilities.c       |  56 +++
 src/conf/capabilities.h       |  23 +
 src/conf/domain_conf.c        | 134 ++++++
 src/conf/domain_conf.h        |  18 +
 src/libvirt_private.syms      |  10 +
 src/qemu/qemu_capabilities.c  |  68 +++
 src/qemu/qemu_driver.c        |   4 +
 src/qemu/qemu_process.c       |  10 +
 src/util/virerror.c           |   1 +
 src/util/virresctrl.c         | 994 ++++++++++++++++++++++++++++++++++++++++++
 src/util/virresctrl.h         | 135 ++++++
 14 files changed, 1496 insertions(+)
 create mode 100644 src/util/virresctrl.c
 create mode 100644 src/util/virresctrl.h

--
1.9.1




More information about the libvir-list mailing list