Zesty s390x zKVM failed with selftest-setup and intercept test in kvm-unit-tests

Bug #1726225 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Medium
Unassigned
qemu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps:
1. git clone https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
2. cd kvm-unit-tests
3. ./configure; make
4. sudo ./run_tests.sh -v

And you will see the detailed command it use, run the one for selftest-setup as root:
# TESTNAME=selftest-setup TIMEOUT=90s ACCEL= ./s390x/run s390x/selftest.elf -smp 1 -append 'test 123'
timeout -k 1s --foreground 90s /usr/bin/qemu-system-s390x -nodefaults -nographic -machine s390-ccw-virtio,accel=tcg -chardev stdio,id=con0 -device sclpconsole,chardev=con0 -kernel s390x/selftest.elf -smp 1 -append test 123 # -initrd /tmp/tmp.gj7cBJS2hH
PASS: selftest: true
PASS: selftest: argc == 3
PASS: selftest: argv[0] == PROGNAME
PASS: selftest: argv[1] == test
PASS: selftest: argv[2] == 123
PASS: selftest: 3.0/2.0 == 1.5
PASS: selftest: Program interrupt: expected(1) == received(1)
ABORT: selftest: Unexpected program interrupt: 5 at 0x12b94, ilen 6

SUMMARY: 7 tests

EXIT: STATUS=127

Run the one for intercept as root:
# TESTNAME=intercept TIMEOUT=90s ACCEL= ./s390x/run s390x/intercept.elf -smp 1
timeout -k 1s --foreground 90s /usr/bin/qemu-system-s390x -nodefaults -nographic -machine s390-ccw-virtio,accel=tcg -chardev stdio,id=con0 -device sclpconsole,chardev=con0 -kernel s390x/intercept.elf -smp 1 # -initrd /tmp/tmp.4QCRdccGRJ
PASS: intercept: stpx: store prefix
FAIL: intercept: stpx: Program interrupt: expected(4) == received(0)
FAIL: intercept: stpx: Program interrupt: expected(6) == received(0)
ABORT: intercept: stpx: Unexpected program interrupt: 5 at 0x109dc, ilen 4

SUMMARY: 3 tests, 2 unexpected failures

EXIT: STATUS=127

This is not a regression as we just add the test for s390x in this cycle.

Po-Hsu Lin (cypressyew)
affects: qemu (Ubuntu) → linux (Ubuntu)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Note that these two tests have passed on s390x zVM, with QEMU 2.8.0

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1726225

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.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
summary: - s390x zKVM failed with selftest-setup and intercept test in kvm-unit-
- tests
+ Zesty s390x zKVM failed with selftest-setup and intercept test in kvm-
+ unit-tests
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Tested with qemu-2.10.1 built from souce, it will fix the problem for selftest-setup, but for the intercept test, the result will be a bit different:

# TESTNAME=intercept TIMEOUT=90s ACCEL= ./s390x/run s390x/intercept.elf -smp 1
timeout -k 1s --foreground 90s /home/ubuntu/test/qemu-2.10.1/s390x-softmmu/qemu-system-s390x -nodefaults -nographic -machine s390-ccw-virtio,accel=tcg -chardev stdio,id=con0 -device sclpconsole,chardev=con0 -kernel s390x/intercept.elf -smp 1 # -initrd /tmp/tmp.R0tlpH6x7d
PASS: intercept: stpx: store prefix
FAIL: intercept: stpx: Program interrupt: expected(4) == received(0)
FAIL: intercept: stpx: Program interrupt: expected(6) == received(0)
PASS: intercept: stpx: Program interrupt: expected(5) == received(5)
PASS: intercept: spx: stfl to new prefix
FAIL: intercept: spx: Program interrupt: expected(6) == received(0)
PASS: intercept: spx: Program interrupt: expected(5) == received(5)
PASS: intercept: stap: get cpu address
FAIL: intercept: stap: Program interrupt: expected(4) == received(0)
FAIL: intercept: stap: Program interrupt: expected(6) == received(0)
PASS: intercept: stap: Program interrupt: expected(5) == received(5)
PASS: intercept: stidp: type set
PASS: intercept: stidp: version valid
PASS: intercept: stidp: reserved bits not set
FAIL: intercept: stidp: Program interrupt: expected(4) == received(0)
PASS: intercept: stidp: Program interrupt: expected(6) == received(6)
PASS: intercept: stidp: Program interrupt: expected(5) == received(5)
PASS: intercept: testblock: page cleared
PASS: intercept: testblock: Program interrupt: expected(4) == received(4)
PASS: intercept: testblock: Program interrupt: expected(5) == received(5)
SUMMARY: 20 tests, 6 unexpected failures

EXIT: STATUS=3

description: updated
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
tags: added: kernel-da-key
Revision history for this message
Sean Feole (sfeole) wrote :

very old bug, with no action on it, marking bug as incomplete and will
close in 5 days if no update.

Changed in ubuntu-kernel-tests:
status: New → Incomplete
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Changed in qemu (Ubuntu):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The zKVM does not support KVM.

Checker had been implemented on it.
http://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=274781934fc8c58c41e962bac0731bbe087ffccb

TestError: Test skipped, this systems does not have KVM extension support

Changed in ubuntu-kernel-tests:
status: Incomplete → Fix Released
Changed in qemu (Ubuntu):
status: Incomplete → Invalid
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.