Philippe Mathieu-Daudé
e57a707a82
scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main()
...
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: John Snow <jsnow@redhat.com >
Reviewed-by: Kevin Wolf <kwolf@redhat.com >
Message-Id: <20200512103238.7078-5-philmd@redhat.com >
2020-05-31 13:56:46 +02:00
Paolo Bonzini
423edd9a31
drop "from __future__ import print_function"
...
This is only needed for Python 2, which we do not support anymore.
Cc: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Acked-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20200204160604.19883-1-pbonzini@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2020-02-07 15:15:16 +01:00
Paolo Bonzini
49d51b8927
vmxcap: correct the name of the variables
...
The low bits are 1 if the control must be one, the high bits
are 1 if the control can be one. Correct the variable names
as they are very confusing.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2019-10-04 18:49:19 +02:00
Jan Kiszka
fc7d2b451e
kvm: vmxcap: Enhance with latest features
...
Based on SDM from May 2019.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2019-08-20 20:00:51 +02:00
Eduardo Habkost
f03868bd56
python: futurize -f libfuturize.fixes.fix_print_with_import
...
Change all Python code to use print as a function.
This is necessary for Python 3 compatibility.
Done using:
$ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
sort -u | grep -v README.sh4)
$ futurize -w -f libfuturize.fixes.fix_print_with_import $py
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Acked-by: Fam Zheng <famz@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <20180608122952.2009-2-ehabkost@redhat.com >
[ehabkost: fixup tests/docker/docker.py]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2018-06-08 14:39:24 -03:00
Paolo Bonzini
025533f6ee
vmxcap: update for September 2016 SDM
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2017-03-03 16:40:02 +01:00
Paolo Bonzini
c3e31eaa21
vmxcap: port to Python 3
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2017-03-03 16:40:02 +01:00
Eduardo Habkost
349cb2fbfd
vmxcap: Add TSC scaling bit
...
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <1472181025-10889-3-git-send-email-ehabkost@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2016-09-13 19:08:46 +02:00
Eduardo Habkost
6a7b47a786
vmxcap: Show raw MSR value
...
This will be helpful to allow checking of bits that are not in
the 'bits' table yet.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <1472181025-10889-2-git-send-email-ehabkost@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2016-09-13 19:08:46 +02:00
Adrian-Ken Rueegsegger
c5d1e2cce3
vmxcap: Update according to SDM of September 2014
...
This adds reporting of RDSEED exiting and XSAVES/XRSTORS #UD and fixes
the range of VMCS revision as well as some typos.
Signed-off-by: Adrian-Ken Rueegsegger <ken@codelabs.ch >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-09-26 21:08:56 +04:00
Jan Kiszka
007e986ff2
vmxcap: Update according to SDM of January 2013
...
This adds reporting of VMCS shadowing, #VE, IA32_SMBASE, unrestricted
VMWRITE and fixes the range of the MSEG revision ID.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com >
2013-04-17 23:27:24 -03:00
Jan Kiszka
614413f7f9
vmxcap: Report APIC register emulation and RDTSCP control
...
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com >
2013-04-17 23:27:24 -03:00
Jan Kiszka
ea4ee28399
vmxcap: Augment reported information
...
Parse the Basic VMX Information MSR and add the bit for the new posted
interrupts.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Gleb Natapov <gleb@redhat.com >
2013-04-17 23:27:24 -03:00
Jan Kiszka
f505a4d74a
vmxcap: Open MSR file in unbuffered mode
...
Python may otherwise decide to to read larger chunks, applying the seek
only on the software buffer. This will return results from the wrong
MSRs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Gleb Natapov <gleb@redhat.com >
2013-04-17 23:27:23 -03:00
Marcelo Tosatti
f9e90c798d
vmxcap: bit 9 of VMX_PROCBASED_CTLS2 is 'virtual interrupt delivery'
...
Bit 9 of MSR_IA32_VMX_PROCBASED_CTLS2 is
virtual interrupt delivery.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com >
2013-01-21 23:11:27 -02:00
Avi Kivity
287d55c676
kvm: update vmxcap for EPT A/D, INVPCID, RDRAND, VMFUNC
...
Signed-off-by: Avi Kivity <avi@redhat.com >
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com >
2012-05-17 23:30:02 -03:00
Jan Kiszka
5f6caa4f2b
kvm: Add tool for querying VMX capabilities
...
Taken from original qemu-kvm/kvm/scripts/vmxcap.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com >
Signed-off-by: Avi Kivity <avi@redhat.com >
2011-10-24 21:26:53 -02:00