History:
libvirt 1.3.3 had added perf event support for cmt, mbmt, mbml support
when we landing the spec
https://blueprints.launchpad.net/nova/+spec/support-perf-event .
For the event cmt, mbmt, mbml, we requires that libvirt to expose some
some specify cpu features, but libvirt 2.0.0 only has that expose merged
`cpu_map.xml: add cmt/mbm feature to x86 (Qiaowei Ren)`, the capabilities
changed to:
<feature name='mbm_total'/>
<feature name='mbm_local'/>
<feature name='cmt'/>
Need to adopt this to let nova driver discover these features when
enable cmt, mbmt, mbml event.
That is to say: even libvirt 1.3.3 has support perf event, but nova
cannot get noticed since libvirt don't expose cpu features until 2.0.0.
This patch bump MIN_LIBVIRT_PERF_VERSION to 2.0.0, see:
https://libvirt.org/formatdomain.html#elementsPerf
Closes-Bug: #1620445
Change-Id: Ie896cfd478f4528903ca5dd56c61680837b646b7
Libvirt 1.3.3 has intergrated `perf`, which can be used as performance
statistics.
This patch enable perf event when create instances, the perf event
data can be collected by Ceilometer or other external monitor system.
Implement blueprint: support-perf-event
Co-Authored-By: Qiaowei Ren <qiaowei.ren@intel.com>
Change-Id: I2ffdabe40a7706cd5061a45f3e46c8245adb3b07