Power9: Ubuntu18.04: qemu gets crashed with cap-ibs="workaround" (kvm)

Bug #1761371 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Triaged
Critical
Canonical Server
qemu (Ubuntu)
New
Undecided
Ubuntu on IBM Power Systems Bug Triage

Bug Description

== Comment: #0 - Satheesh Rajendran <email address hidden> - 2018-04-04 08:34:47 ==
---Problem Description---
qemu gets crashed with cap-ibs="workaround"

---uname output---
4.15.0-14-generic #15-Ubuntu SMP Mon Apr 2 19:47:43 UTC 2018

Machine Type = power9 boston 2.2 (pvr 004e 1202)

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 Boot a guest with machine capability cap-ibs=workaround, qemu-kvm crashes during guest booting.

#kvm -M pseries,cap-cfpc=workaround,cap-sbbc=workaround,cap-ibs=workaround -monitor stdio -serial /dev/pts/7 -enable-kvm -nographic -vga none /ho/sath/ubuntu-18.04-ppc64le.qcow2
QEMU 2.11.1 monitor - type 'help' for more information
(qemu)
(qemu) qemu-system-ppc64: /build/qemu-MNXTuJ/qemu-2.11+dfsg/hw/ppc/spapr_hcall.c:1703: h_get_cpu_characteristics: Assertion `safe_indirect_branch == SPAPR_CAP_BROKEN' failed.
Aborted

This upstream patch will fix the issue, https://github.com/open-power-host-os/qemu/commit/4f5b039d2bf9bb26b6e26a3dc65da36fe970cba9

Contact Information = <email address hidden>

Userspace tool common name: qemu-kvm 1:2.11+dfsg-1ubuntu5

The userspace tool has the following bit modes: both

Userspace rpm: qemu-kvm 1:2.11+dfsg-1ubuntu5

Userspace tool obtained from project website: na

*Additional Instructions for <email address hidden>:
-Attach ltrace and strace of userspace application.

== Comment: #3 - Satheesh Rajendran <email address hidden> - 2018-04-04 08:57:22 ==
This commit fixes the issue:

commit 4f5b039d2bf9bb26b6e26a3dc65da36fe970cba9
Author: Suraj Jitindar Singh <email address hidden>
Date: Fri Feb 16 13:33:27 2018 +1100

    ppc/spapr-caps: Disallow setting workaround for spapr-cap-ibs

    The spapr-cap cap-ibs can only have values broken or fixed as there is
    no explicit workaround required. Currently setting the value workaround
    for this cap will hit an assert if the guest makes the hcall
    h_get_cpu_characteristics.

    Report an error when attempting to apply the setting with a more helpful
    error message.

    Reported-by: Satheesh Rajendran <email address hidden>
    Signed-off-by: Suraj Jitindar Singh <email address hidden>
    Signed-off-by: David Gibson <email address hidden>

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-166424 severity-critical targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → qemu (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Canonical Server Team (canonical-server)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This shares quite a lot of dependent patches with 1761372
I'd like to handle the discussion on these as one.

Therefore I'll close this bug as dup and add the requested change to 1761372.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2018-04-11 09:25 EDT-------
Tested with latest qemu and found fixed.

ii qemu-kvm 1:2.11+dfsg-1ubuntu6 ppc64el

Closing.

tags: added: targetmilestone-inin1804
removed: targetmilestone-inin---
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.