diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-05-12 12:32:36 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-05-31 13:56:46 +0200 |
commit | e57a707a82a0ddc07615e048ef72cf8553c3a4d5 (patch) | |
tree | 252e05f04757c03983e11db1cac6b953d39c14e8 /scripts/kvm/vmxcap | |
parent | 06d4c71f4869386abf97f45f61c21e9dc449943f (diff) | |
download | qemu-e57a707a82a0ddc07615e048ef72cf8553c3a4d5.zip qemu-e57a707a82a0ddc07615e048ef72cf8553c3a4d5.tar.gz qemu-e57a707a82a0ddc07615e048ef72cf8553c3a4d5.tar.bz2 |
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>
Diffstat (limited to 'scripts/kvm/vmxcap')
-rwxr-xr-x | scripts/kvm/vmxcap | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 971ed0e..6fe66d5 100755 --- 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() |