Skip to contentSkip to conversation

vmxcap: Augment reported information

PATCH Applied Jan Kiszka 2 participants 2 messages Feb 13, 2013 – Feb 14, 2013 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 vmxcap: Augment reported information

Parse the Basic VMX Information MSR and add the bit for the new posted interrupts.

---
 scripts/kvm/vmxcap |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
scripts/kvm/vmxcap +14 -0
index 6363e73..a1a44a0 100755
@@ -96,6 +96,19 @@ class Misc(object):
             print '  %-40s %s' % (self.bits[bits], fmt(v))
 
 controls = [
+    Misc(
+        name = 'Basic VMX Information',
+        bits = {
+            (0, 31): 'Revision',
+            (32,44): 'VMCS size',
+            48: 'VMCS restricted to 32 bit addresses',
+            49: 'Dual-monitor support',
+            (50, 53): 'VMCS memory type',
+            54: 'INS/OUTS instruction information',
+            55: 'IA32_VMX_TRUE_*_CTLS support',
+            },
+        msr = MSR_IA32_VMX_BASIC,
+        ),
     Control(
         name = 'pin-based controls',
         bits = {
@@ -103,6 +116,7 @@ controls = [
             3: 'NMI exiting',
             5: 'Virtual NMIs',
             6: 'Activate VMX-preemption timer',
+            7: 'Process posted interrupts',
             },
         cap_msr = MSR_IA32_VMX_PINBASED_CTLS,
         true_cap_msr = MSR_IA32_VMX_TRUE_PINBASED_CTLS,
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 4 lines · Jan Kiszka

Parse the Basic VMX Information MSR and add the bit for the new posted interrupts.

Applied, thanks.

Quoted 38 lines
---
 scripts/kvm/vmxcap |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
scripts/kvm/vmxcap +14 -0
index 6363e73..a1a44a0 100755
@@ -96,6 +96,19 @@ class Misc(object):
             print '  %-40s %s' % (self.bits[bits], fmt(v))
 
 controls = [
+    Misc(
+        name = 'Basic VMX Information',
+        bits = {
+            (0, 31): 'Revision',
+            (32,44): 'VMCS size',
+            48: 'VMCS restricted to 32 bit addresses',
+            49: 'Dual-monitor support',
+            (50, 53): 'VMCS memory type',
+            54: 'INS/OUTS instruction information',
+            55: 'IA32_VMX_TRUE_*_CTLS support',
+            },
+        msr = MSR_IA32_VMX_BASIC,
+        ),
     Control(
         name = 'pin-based controls',
         bits = {
@@ -103,6 +116,7 @@ controls = [
             3: 'NMI exiting',
             5: 'Virtual NMIs',
             6: 'Activate VMX-preemption timer',
+            7: 'Process posted interrupts',
             },
         cap_msr = MSR_IA32_VMX_PINBASED_CTLS,
         true_cap_msr = MSR_IA32_VMX_TRUE_PINBASED_CTLS,
Signature · 1 line
1.7.3.4

--
Gleb.