On Xenial + HWE as-is:

ubuntu@wichita:~/kvm-unit-tests$ sudo ./run_tests.sh -v; cat 
logs/spapr_hcall.log
TESTNAME=selftest-setup TIMEOUT=90s ACCEL= ./powerpc/run powerpc/selftest.elf 
-smp 2 -m 256 -append 'setup smp=2 mem=256'
PASS selftest-setup 
TESTNAME=spapr_hcall TIMEOUT=90s ACCEL= ./powerpc/run powerpc/spapr_hcall.elf 
-smp 1
FAIL spapr_hcall 
TESTNAME=rtas-get-time-of-day TIMEOUT=5 ACCEL= ./powerpc/run powerpc/rtas.elf 
-smp 1 -append "get-time-of-day date=$(date +%s)"
PASS rtas-get-time-of-day 
TESTNAME=rtas-get-time-of-day-base TIMEOUT=5 ACCEL= ./powerpc/run 
powerpc/rtas.elf -smp 1 -rtc base="2006-06-17" -append "get-time-of-day 
date=$(date --date="2006-06-17 UTC" +%s)"
PASS rtas-get-time-of-day-base 
TESTNAME=rtas-set-time-of-day TIMEOUT=5 ACCEL= ./powerpc/run powerpc/rtas.elf 
-smp 1 -append "set-time-of-day"
PASS rtas-set-time-of-day 
TESTNAME=emulator TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
FAIL emulator 
SKIP h_cede_tm (test marked as manual run only)
MIGRATION=yes TESTNAME=sprs TIMEOUT=90s ACCEL= ./powerpc/run powerpc/sprs.elf 
-smp 1 -append '-w'
FAIL sprs 
timeout -k 1s --foreground 90s /usr/bin/qemu-system-ppc64 -nodefaults -machine 
pseries,accel=kvm -bios powerpc/boot_rom.bin -display none -serial stdio 
-kernel powerpc/spapr_hcall.elf -smp 1 # -initrd /tmp/tmp.mp3tm4K2lz
FAIL: hypercall: h_set_sprg0: sprg0 = 0xcafebabedeadbeef
FAIL: hypercall: h_set_sprg0: sprg0 = 0xaaaaaaaa55555555
FAIL: hypercall: h_set_sprg0: sprg0 = 0x419744
FAIL: hypercall: h_page_init: h_zero_page
FAIL: hypercall: h_page_init: h_copy_page
FAIL: hypercall: h_page_init: h_copy_page+h_zero_page
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

EXIT: STATUS=3
R


Upgrade to the version in proposed:
$ sudo apt install qemu-kvm qemu-block-extra qemu-system-ppc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  qemu-system-common qemu-utils
Suggested packages:
  samba vde2 openbios-ppc openhackware debootstrap
The following packages will be upgraded:
  qemu-block-extra qemu-kvm qemu-system-common qemu-system-ppc qemu-utils
5 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
Need to get 3.276 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el 
qemu-system-common ppc64el 1:2.5+dfsg-5ubuntu10.21 [279 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el 
qemu-utils ppc64el 1:2.5+dfsg-5ubuntu10.21 [474 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el 
qemu-block-extra ppc64el 1:2.5+dfsg-5ubuntu10.21 [31,7 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el 
qemu-kvm ppc64el 1:2.5+dfsg-5ubuntu10.21 [6.662 B]
Get:5 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el 
qemu-system-ppc ppc64el 1:2.5+dfsg-5ubuntu10.21 [2.485 kB]
Fetched 3.276 kB in 0s (3.806 kB/s)        
(Reading database ... 67442 files and directories currently installed.)
Preparing to unpack 
.../qemu-system-common_1%3a2.5+dfsg-5ubuntu10.21_ppc64el.deb ...
Unpacking qemu-system-common (1:2.5+dfsg-5ubuntu10.21) over 
(1:2.5+dfsg-5ubuntu10.20) ...
Preparing to unpack .../qemu-utils_1%3a2.5+dfsg-5ubuntu10.21_ppc64el.deb ...
Unpacking qemu-utils (1:2.5+dfsg-5ubuntu10.21) over (1:2.5+dfsg-5ubuntu10.20) 
...
Preparing to unpack .../qemu-block-extra_1%3a2.5+dfsg-5ubuntu10.21_ppc64el.deb 
...
Unpacking qemu-block-extra:ppc64el (1:2.5+dfsg-5ubuntu10.21) over 
(1:2.5+dfsg-5ubuntu10.20) ...
Preparing to unpack .../qemu-kvm_1%3a2.5+dfsg-5ubuntu10.21_ppc64el.deb ...
Unpacking qemu-kvm (1:2.5+dfsg-5ubuntu10.21) over (1:2.5+dfsg-5ubuntu10.20) ...
Preparing to unpack .../qemu-system-ppc_1%3a2.5+dfsg-5ubuntu10.21_ppc64el.deb 
...
Unpacking qemu-system-ppc (1:2.5+dfsg-5ubuntu10.21) over 
(1:2.5+dfsg-5ubuntu10.20) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up qemu-block-extra:ppc64el (1:2.5+dfsg-5ubuntu10.21) ...
Setting up qemu-system-common (1:2.5+dfsg-5ubuntu10.21) ...
Setting up qemu-utils (1:2.5+dfsg-5ubuntu10.21) ...
Setting up qemu-system-ppc (1:2.5+dfsg-5ubuntu10.21) ...
Setting up qemu-kvm (1:2.5+dfsg-5ubuntu10.21) ...


With proposed enabled:
$ sudo ./run_tests.sh -v; cat logs/spapr_hcall.log
TESTNAME=selftest-setup TIMEOUT=90s ACCEL= ./powerpc/run powerpc/selftest.elf 
-smp 2 -m 256 -append 'setup smp=2 mem=256'
PASS selftest-setup 
TESTNAME=spapr_hcall TIMEOUT=90s ACCEL= ./powerpc/run powerpc/spapr_hcall.elf 
-smp 1
PASS spapr_hcall 
TESTNAME=rtas-get-time-of-day TIMEOUT=5 ACCEL= ./powerpc/run powerpc/rtas.elf 
-smp 1 -append "get-time-of-day date=$(date +%s)"
PASS rtas-get-time-of-day 
TESTNAME=rtas-get-time-of-day-base TIMEOUT=5 ACCEL= ./powerpc/run 
powerpc/rtas.elf -smp 1 -rtc base="2006-06-17" -append "get-time-of-day 
date=$(date --date="2006-06-17 UTC" +%s)"
PASS rtas-get-time-of-day-base 
TESTNAME=rtas-set-time-of-day TIMEOUT=5 ACCEL= ./powerpc/run powerpc/rtas.elf 
-smp 1 -append "set-time-of-day"
PASS rtas-set-time-of-day 
TESTNAME=emulator TIMEOUT=90s ACCEL= ./powerpc/run powerpc/emulator.elf -smp 1
FAIL emulator 
SKIP h_cede_tm (test marked as manual run only)
MIGRATION=yes TESTNAME=sprs TIMEOUT=90s ACCEL= ./powerpc/run powerpc/sprs.elf 
-smp 1 -append '-w'
FAIL sprs 
timeout -k 1s --foreground 90s /usr/bin/qemu-system-ppc64 -nodefaults -machine 
pseries,accel=kvm -bios powerpc/boot_rom.bin -display none -serial stdio 
-kernel powerpc/spapr_hcall.elf -smp 1 # -initrd /tmp/tmp.1nGLEapURm
PASS: hypercall: h_set_sprg0: sprg0 = 0xcafebabedeadbeef
PASS: hypercall: h_set_sprg0: sprg0 = 0xaaaaaaaa55555555
PASS: hypercall: h_set_sprg0: sprg0 = 0x419744
PASS: hypercall: h_page_init: h_zero_page
PASS: hypercall: h_page_init: h_copy_page
PASS: hypercall: h_page_init: h_copy_page+h_zero_page
PASS: hypercall: h_page_init: h_zero_page unaligned dst
PASS: hypercall: h_page_init: h_copy_page unaligned src
XFAIL: hypercall: h_random: h-call available
SUMMARY: 9 tests, 1 expected failures

EXIT: STATUS=1
R


Verified in proposed.

** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1712803

Title:
  spapr_hcall from ubuntu_kvm_unit_test failed on ppc64el with Z-hwe
  kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1712803/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to