ubuntu-kvm-unit test failed with emulator test on ppc64le
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Invalid
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* on start of qemu-system-ppc64 MSR_SF is not set correctly
So it doesn't start 64bit as it should
* Todays guests usually work around this and are fine, but it is
incorrect and might be an issue down the road. Furthermore this is also
a fixup to some verification tests at the same time.
[Test Case]
* 1. deploy xenial + HWE kernel on a ppc64el box
2. sudo apt-get install qemu-kvm -y
3. git clone --depth=1 https:/
4. cd kvm-unit-tests
5. ./configure --endian=little; make
6. sudo ppc64_cpu --smt=off
7. sudo ./run_tests.sh -v
[Regression Potential]
* The changes are ppc only and provided by IBM so the potential risk is
retained to the owner of the Area.
Further the change is very small, so it has a very low amount of being
misunderstood.
[Other Info]
* n/a
---
Similar to bug 1723904, bug 1712803.
The failed "emulator" test from kvm-unit-test will pass with qemu-2.7.1 built from source.
ubuntu@
> "
timeout -k 1s --foreground 90s /usr/bin/
FAIL: emulator: 64bit: detected
PASS: emulator: invalid: exception
PASS: emulator: lswx: alignment
PASS: emulator: lswi: alignment
SUMMARY: 4 tests, 1 unexpected failures
EXIT: STATUS=3
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.10.0-37-generic ppc64le
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: ppc64el
Date: Mon Oct 16 10:10:46 2017
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcLoadAvg: 0.00 0.00 0.57 1/1457 83356
ProcLocks:
1: POSIX ADVISORY WRITE 1604 00:14:19651 0 EOF
2: POSIX ADVISORY WRITE 2937 00:14:55331 0 EOF
3: FLOCK ADVISORY WRITE 3046 00:14:67623 0 EOF
4: POSIX ADVISORY WRITE 3124 00:14:57398 0 EOF
5: POSIX ADVISORY WRITE 3047 00:14:87068 0 EOF
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -1
ProcVersion: Linux version 4.10.0-37-generic (buildd@
SourcePackage: linux-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_smt: SMT is off
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: architecture-ppc64le bugnameltc-160548 severity-medium targetmilestone-inin--- |
tags: |
added: targetmilestone-inin16043 removed: targetmilestone-inin--- |
tags: |
added: targetmilestone-inin16045 removed: targetmilestone-inin16043 |
Changed in ubuntu-power-systems: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ubuntu-power-systems: | |
status: | Confirmed → In Progress |
tags: | added: triage-g |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in linux (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in linux (Ubuntu Artful): | |
status: | New → Invalid |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
With qemu-2.7.1 built from source: ubuntu/ qemu-2. 7.1/ppc64- softmmu/ qemu-system- ppc64 emulator. elf -smp 1 qemu-2. 7.1/ppc64- softmmu/ qemu-system- ppc64 -nodefaults -machine pseries,accel=kvm -bios powerpc/ boot_rom. bin -display none -serial stdio -kernel powerpc/ emulator. elf -smp 1 # -initrd /tmp/tmp.2wiGOtABBN
# export QEMU=/home/
# TESTNAME=emulator TIMEOUT=90s ACCEL= ./powerpc/run powerpc/
timeout -k 1s --foreground 90s /home/ubuntu/
PASS: emulator: 64bit: detected
PASS: emulator: invalid: exception
PASS: emulator: lswx: alignment
PASS: emulator: lswi: alignment
SUMMARY: 4 tests
EXIT: STATUS=1