[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 4/8] python/qemu: accel: Fix kvm_available() on ppc64le
From: |
Wainer dos Santos Moschetta |
Subject: |
[PATCH v4 4/8] python/qemu: accel: Fix kvm_available() on ppc64le |
Date: |
Wed, 5 Feb 2020 15:32:46 -0500 |
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: 53a049d7d78e5ccf6d4c0d7
Signed-off-by: Wainer dos Santos Moschetta <address@hidden>
---
python/qemu/accel.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/python/qemu/accel.py b/python/qemu/accel.py
index 0b38ddf0ab..36ae85791e 100644
--- a/python/qemu/accel.py
+++ b/python/qemu/accel.py
@@ -24,7 +24,8 @@ LOG = logging.getLogger(__name__)
# support which often includes its 32 bit cousin.
ADDITIONAL_ARCHES = {
"x86_64" : "i386",
- "aarch64" : "armhf"
+ "aarch64" : "armhf",
+ "ppc64le" : "ppc64",
}
def list_accel(qemu_bin):
--
2.24.1
- [PATCH v4 0/8] Acceptance tests: boot Linux with KVM test, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 7/8] tests/acceptance: avocado_qemu: Refactor the handler of 'machine' parameter, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 2/8] tests/acceptance: boot_linux_console: Add boot Linux/x86 with KVM, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 1/8] tests/acceptance: avocado_qemu: Introduce the 'accel' test parameter, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 6/8] tests/acceptance: boot_linux_console: Add boot Linux/s390x with KVM, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 4/8] python/qemu: accel: Fix kvm_available() on ppc64le,
Wainer dos Santos Moschetta <=
- [PATCH v4 8/8] travis.yml: Enable acceptance KVM tests, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 3/8] tests/acceptance: boot_linux_console: Add boot Linux/aarch64 with KVM, Wainer dos Santos Moschetta, 2020/02/05
- [PATCH v4 5/8] test/acceptance: boot_linux_console: Add boot Linux/ppc64le with KVM, Wainer dos Santos Moschetta, 2020/02/05
- Re: [PATCH v4 0/8] Acceptance tests: boot Linux with KVM test, Philippe Mathieu-Daudé, 2020/02/10