[libvirt] [PATCH 1/1] cpu_map.xml: add cmt/mbm feature to x86

Qiaowei Ren qiaowei.ren at intel.com
Fri Jun 17 01:23:56 UTC 2016


Some Intel processor families (e.g. the Intel Xeon processor E5 v3
family) introduced some PQos (Platform Qos) features, including CMT
(Cache Monitoring echnology) and MBM (Memory Bandwidth Monitoring),
to monitor or control shared resource. This patch add them into x86
part of cpu_map.xml to be used for applications (like OpenStack)
based on libvirt to get cpu capabilities.

Signed-off-by: Qiaowei Ren <qiaowei.ren at intel.com>
---
 src/cpu/cpu_map.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 08aded2..2e2cb4f 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -320,6 +320,9 @@
     <feature name='rtm'>
       <cpuid function='0x00000007' ebx='0x00000800'/>
     </feature>
+    <feature name='cmt'>
+      <cpuid function='0x00000007' ebx='0x00001000'/>
+    </feature>
     <feature name='mpx'>
       <cpuid function='0x00000007' ebx='0x00004000'/>
     </feature>
@@ -353,6 +356,14 @@
       <cpuid function='0x80000007' edx='0x00000100'/>
     </feature>
 
+    <!-- cpuid level 0x0000000f:1 (edx) -->
+    <feature name='mbm_total'> <!-- LLC Total MBM monitoring -->
+      <cpuid function='0x0000000f' edx='0x00000002'/>
+    </feature>
+    <feature name='mbm_local'> <!-- LLC Local MBM monitoring -->
+      <cpuid function='0x0000000f' edx='0x00000004'/>
+    </feature>
+
     <!-- models -->
     <model name='486'>
       <feature name='fpu'/>
-- 
1.9.1




More information about the libvir-list mailing list