Skip to contentSkip to conversation

vmxcap: Show raw MSR value, add TSC scaling bit

PATCH Applied Eduardo Habkost 2 participants 4 messages Aug 26, 2016 – Aug 30, 2016

lore
Share & tools
lore
#0 lore raw

cover vmxcap: Show raw MSR value, add TSC scaling bit

Eduardo Habkost (2):
vmxcap: Show raw MSR value
vmxcap: Add TSC scaling bit

 scripts/kvm/vmxcap | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 vmxcap: Show raw MSR value

This will be helpful to allow checking of bits that are not in the 'bits' table yet.

---
 scripts/kvm/vmxcap | 1 +
 1 file changed, 1 insertion(+)
scripts/kvm/vmxcap +1 -0
index 8f0371f..9af71ea 100755
@@ -79,6 +79,7 @@ class Misc(object):
     def show(self):
         print self.name
         value = msr().read(self.msr, 0)
+        print '  Hex: 0x%x' % (value)
         def first_bit(key):
             if type(key) is tuple:
                 return key[0]
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 vmxcap: Add TSC scaling bit

In reply to Eduardo Habkost
---
 scripts/kvm/vmxcap | 1 +
 1 file changed, 1 insertion(+)
scripts/kvm/vmxcap +1 -0
index 9af71ea..2220255 100755
@@ -173,6 +173,7 @@ controls = [
             16: 'RDSEED exiting',
             18: 'EPT-violation #VE',
             20: 'Enable XSAVES/XRSTORS',
+            25: 'TSC scaling',
             },
         cap_msr = MSR_IA32_VMX_PROCBASED_CTLS2,
         ),
Signature · 1 line
2.7.4
#3 lore raw
In reply to Eduardo Habkost
Quoted 7 lines · Eduardo Habkost

Eduardo Habkost (2):
vmxcap: Show raw MSR value
vmxcap: Add TSC scaling bit

 scripts/kvm/vmxcap | 2 ++
 1 file changed, 2 insertions(+)

Queued for 2.8, thanks.

Paolo