qemu-system-aarch64: Unable to determine GIC version supported by host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
linux-hwe-edge (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I found this issue on a linux-hwe-edge arm64 Moonshot node.
With Xenial + 4.15 HWE Edge kernel, most of the tests in the kvm-unit-test will be skipped:
Running './run_tests.sh -v'
SKIP selftest-setup (KVM acceleration is probably not supported)
SKIP selftest-
SKIP selftest-
SKIP selftest-smp (KVM acceleration is probably not supported)
SKIP pci-test (KVM acceleration is probably not supported)
SKIP pmu (KVM acceleration is probably not supported)
TESTNAME=gicv2-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'ipi'
FAIL gicv2-ipi (timeout; duration=90s)
SKIP gicv3-ipi (qemu-system-
TESTNAME=
PASS gicv2-active (1 tests)
SKIP gicv3-active (qemu-system-
SKIP psci (KVM acceleration is probably not supported)
SKIP timer (KVM acceleration is probably not supported)
But with Xenial + 4.13 HWE kernel, it's very different:
Running './run_tests.sh -v'
TESTNAME=
PASS selftest-setup (2 tests)
TESTNAME=
PASS selftest-
TESTNAME=
PASS selftest-
TESTNAME=
PASS selftest-smp (9 tests)
TESTNAME=pci-test TIMEOUT=90s ACCEL= ./arm/run arm/pci-test.flat -smp 1
PASS pci-test (1 tests)
TESTNAME=pmu TIMEOUT=90s ACCEL= ./arm/run arm/pmu.flat -smp 1
FAIL pmu (3 tests, 3 unexpected failures)
TESTNAME=gicv2-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'ipi'
PASS gicv2-ipi (3 tests)
SKIP gicv3-ipi (qemu-system-
TESTNAME=
PASS gicv2-active (1 tests)
SKIP gicv3-active (qemu-system-
TESTNAME=psci TIMEOUT=90s ACCEL= ./arm/run arm/psci.flat -smp $MAX_SMP
PASS psci (4 tests)
TESTNAME=timer TIMEOUT=2s ACCEL= ./arm/run arm/timer.flat -smp 1
If you run the command "TESTNAME=
$ sudo TESTNAME=
timeout -k 1s --foreground 90s /usr/bin/
qemu-system-
KVM acceleration is probably not supported
It's a bit weird to see a passed test change into a skip one.
qemu-system-arm 1:2.5+dfsg-
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-13-generic aarch64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: arm64
Date: Fri Mar 30 03:22:36 2018
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: linux-hwe-edge
UpgradeStatus: No upgrade log present (probably fresh install)
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1760069
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.