Skip to content
Snippets Groups Projects
Commit 51aa9d12 authored by Wainer dos Santos Moschetta's avatar Wainer dos Santos Moschetta Committed by Philippe Mathieu-Daudé
Browse files

python/qemu: accel: Fix kvm_available() on ppc64le


On ppc64le, the accel.kvm_available() check may wrongly
return False because the host arch (as returned by os.uname[4])
and the target arch (ppc64) mismatch. In order to solve this
it is added an ppc64le -> ppc64 mapping which is used as an
fallback verification.

Fixes: 53a049d7
Signed-off-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200205203250.30526-5-wainersm@redhat.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
parent 50d189c9
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,8 @@
# support which often includes its 32 bit cousin.
ADDITIONAL_ARCHES = {
"x86_64" : "i386",
"aarch64" : "armhf"
"aarch64" : "armhf",
"ppc64le" : "ppc64",
}
def list_accel(qemu_bin):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment