projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06d4c71
)
scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main()
author
Philippe Mathieu-Daudé
<philmd@redhat.com>
Tue, 12 May 2020 10:32:36 +0000
(12:32 +0200)
committer
Philippe Mathieu-Daudé
<philmd@redhat.com>
Sun, 31 May 2020 11:56:46 +0000
(13:56 +0200)
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>
scripts/kvm/vmxcap
patch
|
blob
|
history
diff --git
a/scripts/kvm/vmxcap
b/scripts/kvm/vmxcap
index 971ed0e72170ff066379025fb6bb20a159ff9f6e..6fe66d5f5753af5a86dd992ba4347c79d44862d2 100755
(executable)
--- a/
scripts/kvm/vmxcap
+++ b/
scripts/kvm/vmxcap
@@
-1,4
+1,4
@@
-#!/usr/bin/
python
+#!/usr/bin/
env python3
#
# tool for querying VMX capabilities
#
@@
-275,5
+275,6
@@
controls = [
),
]
-for c in controls:
- c.show()
+if __name__ == '__main__':
+ for c in controls:
+ c.show()