[20.04 FEAT] qemu: P9 guest - XIVE support/exploitation

Bug #1692450 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
Low
Canonical Server
qemu (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

== Comment: #0 - Frank P. Novak <email address hidden> - 2016-08-12 10:15:22 ==

[FEATURE] P9 guest - XIVE support/exploitation

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-144857 severity-critical targetmilestone-inin1804
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:
assignee: nobody → Canonical Server Team (canonical-server)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
thanks for starting the tracking of all related changes.
Is this in qemu 2.9, if not is it at least upstream and which are the related commits?

tags: added: p9-virt-stack
Changed in qemu (Ubuntu):
status: New → Incomplete
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
especially for new features I assume that you'll do the testing, but some sort of extra info on ...

a) what it does
b) how to use/exploit it as a user
c) implications/regressions
d) HW constraints (min HW level, FW, ...)

... would be really great

Manoj Iyer (manjo)
tags: added: ubuntu-18.04
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Ping - Since 2.10 likely will be too late to make 17.10 polling for related commit ID's for p9 support

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Also this might be 18.04 according to the tagging, but if known and ready please let me know.

Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Incomplete
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-06-14 08:48 EDT-------
Hi Christian,

This is QEMU 2.11 and linux 4.13 at minimum. So definitely not a Ubuntu 17.10 thing. This is targeted for Ubuntu 18.04.

------- Comment From <email address hidden> 2017-06-14 08:57 EDT-------
(In reply to comment #6)
> Hi,
> especially for new features I assume that you'll do the testing, but some
> sort of extra info on ...
>
> a) what it does

POWER9 has a new interrupt controller called XIVE (eXternal Interrupt Virtualization Engine). This new interrupt controller will provide considerable performance enhancements for interrupts being routed to guests when compared to the previous interrupt controller, XICS (eXternal Interrupt Controller Specification), used on POWER8 processors.

This feature is about building support for a guest to use the XIVE interrupt controller. If this is not available the guest will continue to use emulated XICS as available on POWER8 guets.

> b) how to use/exploit it as a user

We need a host with a kernel and QEMU with the necessary support to export XIVE directly to the guest, plus a guest kernel that can use XIVE. This combination should be enough to make the guest automatically use XIVE. This can be easily checked in dmesg or /proc/interrupts.

> c) implications/regressions

If XIVE is not working the guest will use XICS. This can be checked in dmesg and /proc/interrupts. If no interrupt controller is working this will be easily noticed because the guest will not boot.

> d) HW constraints (min HW level, FW, ...)

This needs POWER9 hardware.

tags: added: p9-virt-stack-18.04
removed: p9-virt-stack
Manoj Iyer (manjo)
Changed in ubuntu-power-systems:
importance: Undecided → Critical
Changed in qemu (Ubuntu):
importance: Undecided → Critical
Manoj Iyer (manjo)
tags: added: triage-g
Manoj Iyer (manjo)
Changed in qemu (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → David Britton (davidpbritton)
Changed in ubuntu-power-systems:
status: Incomplete → Triaged
Manoj Iyer (manjo)
Changed in qemu (Ubuntu):
status: Incomplete → Triaged
bugproxy (bugproxy)
tags: added: targetmilestone-inin1810
removed: targetmilestone-inin1804
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [18.04 FEAT] qemu: P9 guest - XIVE support/exploitation

This is targetted at 18.10 now, are there new package version requirements?

We are currently targetting qemu 2.11 & linux kernel 4.15. Is that not sufficient to exploit P9 guest XIVE?

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

------- Comment From <email address hidden> 2018-02-14 13:01 EDT-------
XIVE in a guest is not yet available upstream.

Manoj Iyer (manjo)
summary: - [18.04 FEAT] qemu: P9 guest - XIVE support/exploitation
+ [18.10 FEAT] qemu: P9 guest - XIVE support/exploitation
tags: added: ubuntu-18.10
removed: ubuntu-18.04
Manoj Iyer (manjo)
Changed in ubuntu-power-systems:
status: Triaged → Incomplete
Revision history for this message
Andrew Cloke (andrew-cloke) wrote : Re: [18.10 FEAT] qemu: P9 guest - XIVE support/exploitation

From comment #7, waiting for "XIVE in a guest" support to land upstream.

Revision history for this message
Manoj Iyer (manjo) wrote :

Since this is an 18.10 feature request marking priority a low for now.

Changed in qemu (Ubuntu):
importance: Critical → Low
Changed in ubuntu-power-systems:
importance: Critical → Low
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2018-08-17 15:23 EDT-------
Feature still being worked upstream. Postponing to Ubuntu 19.04.

tags: added: targetmilestone-inin1904
removed: targetmilestone-inin1810
summary: - [18.10 FEAT] qemu: P9 guest - XIVE support/exploitation
+ [19.04 FEAT] qemu: P9 guest - XIVE support/exploitation
bugproxy (bugproxy)
tags: added: targetmilestone-inin1910
removed: targetmilestone-inin1904
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2019-03-13 16:28 EDT-------
This is still being discussed upstream.

Manoj Iyer (manjo)
Changed in qemu (Ubuntu):
assignee: David Britton (davidpbritton) → nobody
Changed in qemu (Ubuntu):
status: Triaged → Incomplete
Manoj Iyer (manjo)
summary: - [19.04 FEAT] qemu: P9 guest - XIVE support/exploitation
+ [19.10 FEAT] qemu: P9 guest - XIVE support/exploitation
Revision history for this message
Andrew Cloke (andrew-cloke) wrote : Re: [19.10 FEAT] qemu: P9 guest - XIVE support/exploitation

Note: Feature Freeze for 19.10 is 22nd August.

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

We are now past feature freeze for 19.10. Should this be re-targeted to 20.04?

tags: added: libvirt-20.04
Frank Heimes (fheimes)
summary: - [19.10 FEAT] qemu: P9 guest - XIVE support/exploitation
+ [20.04 FEAT] qemu: P9 guest - XIVE support/exploitation
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2019-10-08 12:24 EDT-------
Everything for this support did go upstream is already part of 19.10 so we can close.

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Thanks Michael. Closing out.

Changed in qemu (Ubuntu):
status: Incomplete → Fix Released
Changed in ubuntu-power-systems:
status: Incomplete → Fix Released
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.