spapr_hcall from ubuntu_kvm_unit_test failed on ppc64el with Z-hwe kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
* Xenial with HWE kernel (matching new relesaes) and qemu without cloud
archive (not matching new releases) could trigger hypercalls that are
not supported in xenials-qemu.
* There is no "real" case other than kvm tests yet to trigger it yet, but
it is an easy and well contained fix, so we might fix proactively.
[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 -v
[Regression Potential]
* The changes are all upstream since a long time now (lowering the risk
of silly mistakes)
* The changes are isolated to ppc, so in the worst case only this arch
should regress.
* We implement new hcalls, so if anything there might be a regression if
software expected them to fail, but now breaks by them working (don't
think so given the nature of these hcalls).
[Other Info]
* n/a
---
kernel: 4.10.0-
I think this issue was introduced by the old qemu version (similar issue was spotted on Xenial before), will need to investigate this further.
qemu-system-ppc64 -machine pseries,accel=kvm -bios powerpc/
FAIL: hypercall: h_set_sprg0: sprg0 = 0xcafebabedeadbeef
FAIL: hypercall: h_set_sprg0: sprg0 = 0xaaaaaaaa55555555
FAIL: hypercall: h_set_sprg0: sprg0 = 0x41a588
FAIL: hypercall: h_page_init: h_zero_page
FAIL: hypercall: h_page_init: h_copy_page
FAIL: hypercall: h_page_init: h_copy_
FAIL: hypercall: h_page_init: h_zero_page unaligned dst
FAIL: hypercall: h_page_init: h_copy_page unaligned src
XFAIL: hypercall: h_random: h-call available
SUMMARY: 9 tests, 8 unexpected failures, 1 expected failures
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
tags: | added: kernel-da-key |
tags: | added: architecture-ppc64le bugnameltc-160546 severity-medium targetmilestone-inin16043 |
description: | updated |
Changed in ubuntu-kernel-tests: | |
status: | New → Fix Released |
Changed in linux (Ubuntu): | |
status: | Triaged → Invalid |
Changed in linux (Ubuntu Xenial): | |
status: | New → Invalid |
tags: | added: cscc |
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 1712803
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.