From 6a7b47a786bb16d36ad6f1733138d4aeb233bb3d Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 25 Aug 2016 23:10:24 -0400 Subject: 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 Message-Id: <1472181025-10889-2-git-send-email-ehabkost@redhat.com> Signed-off-by: Paolo Bonzini --- scripts/kvm/vmxcap | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 8f0371f498..9af71ead1b 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -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] -- cgit v1.2.3-55-g7522 From 349cb2fbfdcbc9f6770389f3b69422e8c441042d Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 25 Aug 2016 23:10:25 -0400 Subject: vmxcap: Add TSC scaling bit Signed-off-by: Eduardo Habkost Message-Id: <1472181025-10889-3-git-send-email-ehabkost@redhat.com> Signed-off-by: Paolo Bonzini --- scripts/kvm/vmxcap | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 9af71ead1b..222025525b 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -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, ), -- cgit v1.2.3-55-g7522 From 0cebabd5e8277864ef87b4526cb1c9b3f0c06ee7 Mon Sep 17 00:00:00 2001 From: Lluís Vilanova Date: Wed, 7 Sep 2016 14:49:04 +0200 Subject: checkpatch: Fix whitespace checks for documentation code blocks Prevent blank lines in documentation code blocks to be signalled as incorrect trailing whitespace. Code blocks in documentation are 4-column aligned, and blank lines in them should have exactly 4 columns of trailing whitespace to prevent QEMU's wiki to render them as separate code blocks. Signed-off-by: Lluís Vilanova Message-Id: <147325254382.22644.5531276787733455773.stgit@fimbulvetr.bsc.es> Signed-off-by: Paolo Bonzini Signed-off-by: Lluís Vilanova --- scripts/checkpatch.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts') diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b0096a4460..dde3f5f9d9 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1320,6 +1320,16 @@ sub process { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; ERROR("DOS line endings\n" . $herevet); + } elsif ($realfile =~ /^docs\/.+\.txt/ || + $realfile =~ /^docs\/.+\.md/) { + if ($rawline =~ /^\+\s+$/ && $rawline !~ /^\+ {4}$/) { + # TODO: properly check we're in a code block + # (surrounding text is 4-column aligned) + my $herevet = "$here\n" . cat_vet($rawline) . "\n"; + ERROR("code blocks in documentation should have " . + "empty lines with exactly 4 columns of " . + "whitespace\n" . $herevet); + } } elsif ($rawline =~ /^\+.*\S\s+$/ || $rawline =~ /^\+\s+$/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; ERROR("trailing whitespace\n" . $herevet); -- cgit v1.2.3-55-g7522