KVM enable SnowRidge Accelerator Interfacing Architecture (AIA)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| linux (Ubuntu) |
Wishlist
|
Unassigned | ||
| qemu (Ubuntu) |
Wishlist
|
Unassigned | ||
| xen (Ubuntu) |
Wishlist
|
Unassigned |
Bug Description
CPU core (Tremont) includes Accelerator Interfacing Architecture (AIA) features including:
- UMONITOR/UMWAIT: Ring-3 MONITOR/MWAIT with timeout. For memory-based synch with accelerators
- TPAUSE: Monitor-less wait (with timeout). For wait-on-multiple or wait-for-interrupt usages
- MOVDIRI: 8B streaming doorbell write capability. For streaming accelerator usages.
- MOVDIR64B: Non-temporal write with 64B guaranteed write-atomicity. For latency critical accelerator usages
Upstream target linux 5.4/Qemu-3.10
Target Release: 20.04
CVE References
description: | updated |
tags: |
added: intel-virt-19.04 removed: intel |
Christian Ehrhardt (paelzer) wrote : | #1 |
quanxian (quanxian-wang) wrote : | #2 |
post qemu 3.1.0 (currently untagged)
24261de4 x86/cpu: Enable MOVDIRI cpu feature
1c65775f x86/cpu: Enable MOVDIR64B cpu feature
description: | updated |
quanxian (quanxian-wang) wrote : | #3 |
Others information:
The series for kernel patches:
https:/
https:/
Christian Ehrhardt (paelzer) wrote : | #4 |
Ok, now we finally know it is about qemu&kernel patches - I'll add tasks for that.
Still haven't seen any xen references, setting that to incomplete.
But given how new it is I'd punt this from 19.04 to 19.10 where things in kernel&qemu will have matured and be safer to use.
If you are not ok with this please outline important use cases that will be inhibited.
All changes are "just" adding definitions, no actual code added - but I'm somewhat afraid of hidden dependencies - especially since we have no associated testcase and it would need special (very new) hardware t be tested.
Changed in qemu (Ubuntu): | |
status: | New → Triaged |
tags: | added: qemu-19.10 |
Changed in qemu (Ubuntu): | |
importance: | Undecided → Medium |
Changed in xen (Ubuntu): | |
status: | New → Incomplete |
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 1782206
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 |
tags: | added: disco |
quanxian (quanxian-wang) wrote : | #6 |
The detail git commits of Qemu are as below:
1c65775ffc2dbd2
==> x86/cpu: Enable MOVDIR64B cpu feature
24261de4916596d
==> x86/cpu: Enable MOVDIRI cpu feature
Paul Lai (pclai) wrote : | #8 |
33823f4d6 x86/cpufeatures: Enumerate MOVDIRI instruction
ace6485a0 x86/cpufeatures: Enumerate MOVDIR64B instruction
65e259d5c tools arch x86: Update tools's copy of cpufeatures.h
(linux 5.1-rc1)
74f2370bb KVM: x86: expose MOVDIRI CPU feature into VM.
c029b5deb KVM: x86: expose MOVDIR64B CPU feature into VM.
description: | updated |
tags: |
added: intel-virt-19.10 removed: intel-virt-19.04 |
description: | updated |
Christian Ehrhardt (paelzer) wrote : | #9 |
The qemu commits have landed in 4.0 - so that part should work in Ubuntu 19.10
The kernel commits are in 5.1 as outlined by Paul above already (thanks).
@Paul - since the initial upstream target was "linux 5.3" are there things missing or did this just work out faster than expected?
Paul Lai (pclai) wrote : | #10 |
Chris: a little of both. The UMONITOR/
Robie Basak (racb) wrote : | #11 |
Looks like this is a feature request rather than a bug?
Changed in linux (Ubuntu): | |
importance: | Undecided → Wishlist |
Changed in qemu (Ubuntu): | |
importance: | Medium → Wishlist |
Changed in xen (Ubuntu): | |
importance: | Undecided → Wishlist |
Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package qemu - 1:4.0+dfsg-0ubuntu1
---------------
qemu (1:4.0+
* Merge with Upstream release of qemu 4.0.
Among many other things this fixes LP Bugs:
LP: #1782206 - SnowRidge Accelerator Interfacing Architecture (AIA)
LP: #1828038 - Update s390x CPU Model for more HW support
LP: #1832622 - count cache flush Spectre v2 mitigation for ppc64el
Remaining Changes:
- qemu-kvm to systemd unit
- d/qemu-kvm-init: script for QEMU KVM preparation modules, ksm,
hugepages and architecture specifics
- d/qemu-
- d/qemu-
- d/qemu-
- d/qemu-
- d/rules: call dh_installinit and dh_installsystemd for qemu-kvm
- Enable nesting by default
- d/qemu-
(is default on amd)
- d/qemu-
without nested=1
- d/p/ubuntu/
in qemu64 cpu type.
- d/p/ubuntu/
in qemu64 on amd
- d/qemu-
default is comfort, not full support
- Distribution specific machine type (LP: 1304107 1621042)
- d/p/ubuntu/
types
- d/qemu-
for host-phys-bits=true (LP: 1776189)
- add an info about -hpb machine type in debian/
- provide pseries-
- improved dependencies
- Make qemu-system-common depend on qemu-block-extra
- Make qemu-utils depend on qemu-block-extra
- let qemu-utils recommend sharutils
- s390x support
- Create qemu-system-s390x package
- Enable numa support for s390x
- arch aware kvm wrappers
- d/control: update VCS links
- qemu-guest-agent: freeze-hook fixes (LP: 1484990)
- d/qemu-
- d/qemu-
- d/control-in: enable RDMA support in qemu (LP: 1692476)
- enable RDMA config option
- add libibumad-dev build-dep
- tolerate ipxe size change on migrations to >=18.04 (LP: 1713490)
- d/p/ubuntu/
reference 256k path
- d/control-in: depend on ipxe-qemu-
handle incoming migrations from former releases.
- d/control-in: Disable capstone disassembler library support (universe)
- Move s390x roms to a new qemu-system-
- d/qemu-
Changed in qemu (Ubuntu): | |
status: | Triaged → Fix Released |
description: | updated |
Andreas Hasenack (ahasenack) wrote : | #13 |
Setting linux task to triaged, as there are commits to pick up. Xen I'm still unsure.
Changed in linux (Ubuntu): | |
status: | Incomplete → Triaged |
Paul Lai (pclai) wrote : | #14 |
Additional KVM patches has been merged (post 5.3-rc8):
e69e72faa3a KVM: x86: Add support for user wait instructions
6e3ba4abcea KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL
bf653b78f96 KVM: vmx: Introduce handle_
[There's no Xen AIA work (yet)]
description: | updated |
tags: |
added: intel-virt-20.04 removed: intel-virt-19.10 |
Paul Lai (pclai) wrote : | #15 |
qemu post 4.1.0 (yet untagged)
67192a298f5 x86/cpu: Add support for UMONITOR/
6508799707b target/i386: Add support for save/load IA32_UMWAIT_CONTROL MSR
Christian Ehrhardt (paelzer) wrote : | #16 |
Most likely we will have qemu 4.2 in Ubuntu 20.04.
But we already closed this bug for qemu with the patches you identified in the past.
If you need - for tracking purposes - a bug that closes once these further changes are in I'd ask you to open a new one.
Hi,
title says KVM, but the bug is only against xen so far.
Will this need an "qemu (ubuntu)" and/or "linux (ubuntu)" task as well?
- kernel 4.20 is listed so I assume the latter.
- Comments do not mention Qemu yet