GPU acceleration via VirGL is broken in qemu

Bug #2038834 reported by Mate Kukri
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
New
Undecided
Unassigned
mesa (Ubuntu)
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]
 * Enabling GPU acceleration can cause host-side crashes on mantic/noble VMs

 * This was reported by someone else upstream and is already fixed by
   https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25580.

[ Test Plan ]

 * I've tested the patch on an affected macOS host running Ubuntu in UTM with
   OpenGL enabled on both Mantic and Noble VMs.

 * Anyone else can do the same on an affected host by simply installing the
   patched package and booting to the desktop.

[ Where problems could occur ]

 * This patch fixes an upstream mesa regression which caused libvirglrendrer to
   crash on the host side.

 * This makes a non-working use case work, VirGL on affected hosts cannot
   regress as it simply didn't work before.

 * Risk of breakage is mainly from other packages possible affected by a mesa
   rebuild.

Mate Kukri (mkukri)
Changed in mesa (Ubuntu):
milestone: none → ubuntu-23.10
Mate Kukri (mkukri)
Changed in mesa (Ubuntu):
milestone: ubuntu-23.10 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mesa (Ubuntu):
status: New → Confirmed
Revision history for this message
Mate Kukri (mkukri) wrote :

This integrates the patch for this bug from upstream.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "1-23.2.1-1ubuntu4.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mate Kukri (mkukri)
description: updated
Mate Kukri (mkukri)
Changed in mesa (Ubuntu Noble):
status: Confirmed → Fix Released
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Hello Mate,

I see that the debdiff you provided applies to Noble, but this bug is also marked as affecting Mantic. Could you provide an updated debdiff for the Mantic version? Thanks!

Revision history for this message
Mate Kukri (mkukri) wrote :

Hi @sergiodj,

I believe it was already uploaded, and is currently in the unapproved queue: https://launchpadlibrarian.net/697888277/mesa_23.2.1-1ubuntu3_23.2.1-1ubuntu3.1.diff.gz

The difference to noble is purely the version number being ubuntu3.1 instead of ubuntu4.

Mate

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Mate, or anyone else affected,

Accepted mesa into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mesa/23.2.1-1ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in mesa (Ubuntu Mantic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-mantic
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (mesa/23.2.1-1ubuntu3.1)

All autopkgtests for the newly accepted mesa (23.2.1-1ubuntu3.1) for mantic have finished running.
The following regressions have been reported in tests triggered by the package:

asymptote/2.86+ds-1 (armhf)
clutter-1.0/1.26.4+git2779b932+dfsg-5 (armhf)
freeglut/3.4.0-1 (armhf)
gle/3.1.0-10 (armhf)
glfw3/3.3.8-1 (armhf)
gtk+3.0/3.24.38-5ubuntu1 (armhf)
libcsfml/2.5-1.1 (armhf)
libsdl2/2.28.3+dfsg-2 (armhf)
mutter/45.0-3ubuntu3.1 (armhf)
njplot/2.4-9 (armhf)
vtk9/9.1.0+really9.1.0+dfsg2-7 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/mantic/update_excuses.html#mesa

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Mate Kukri (mkukri) wrote :

The autopkgtest regression above are due to armhf autopkgtest runner faults. The tests have been re-triggered and should succeed.

Confirmed to fix VirGL graphics acceleration on my previously affected machine.

tags: added: verification-done verification-done-mantic
removed: verification-needed verification-needed-mantic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 23.2.1-1ubuntu3.1

---------------
mesa (23.2.1-1ubuntu3.1) mantic; urgency=medium

  * patches: Avoid crashing virglrenderer when the host doesn't support
    PIPE_CAP_CLEAR_TEXTURE (LP: #2038834)

 -- Mate Kukri <email address hidden> Tue, 07 Nov 2023 15:41:32 +0200

Changed in mesa (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for mesa has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.