Bug 965101 - QXL driver crashes in KVM (i386)
Summary: QXL driver crashes in KVM (i386)
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-qxl
Version: 19
Hardware: i386
OS: Unspecified
Target Milestone: ---
Assignee: Dave Airlie
QA Contact: Fedora Extras Quality Assurance
Whiteboard: RejectedBlocker RejectedFreezeExcepti...
Depends On:
TreeView+ depends on / blocked
Reported: 2013-05-20 11:38 UTC by Vojtěch Boček
Modified: 2013-06-02 02:59 UTC (History)
11 users (show)

Fixed In Version: xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 967679 (view as bug list)
Last Closed: 2013-06-02 02:59:26 UTC
Type: Bug

Attachments (Terms of Use)
Xorg.0.log (20.05 KB, text/plain)
2013-05-20 11:38 UTC, Vojtěch Boček
no flags Details
dmesg (103.97 KB, text/plain)
2013-05-20 11:39 UTC, Vojtěch Boček
no flags Details
journalctl -a (1.56 MB, text/plain)
2013-05-20 11:40 UTC, Vojtěch Boček
no flags Details
Serial console output for F18 Beta RC4 x86_64 liveCD on RHEL6.4 host with spice+qxl (24.16 KB, text/plain)
2013-05-23 14:20 UTC, Jiri Pospisil
no flags Details
dmesg with update xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19 (47.42 KB, text/plain)
2013-05-28 10:42 UTC, Vojtěch Boček
no flags Details
X.log with update xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19 (20.06 KB, text/plain)
2013-05-28 10:43 UTC, Vojtěch Boček
no flags Details

Description Vojtěch Boček 2013-05-20 11:38:33 UTC
Created attachment 750554 [details]

Description of problem:
When running Fedora 19 Beta RC2 in KVM and QXL display driver and Spice server are selected in virt-manager, X crashes on start. This only occurs on i386. Reproduced on 2 different computers.

[     5.683] (EE) qxl(0): mmap failure: Invalid argument
[     5.687] (EE) qxl(0): mmap failure: Invalid argument
[     5.687] (EE) 
[     5.687] (EE) Backtrace:
[     5.696] (EE) 0: /usr/bin/X (OsLookupColor+0x136) [0x80b6196]
[     5.697] (EE) 1: ? (?+0x136) [0xb7797541]
[     5.697] (EE) 2: /usr/lib/xorg/modules/drivers/qxl_drv.so (_init+0x4248) [0xb6d17f68]
[     5.697] (EE) 3: /usr/lib/xorg/modules/drivers/qxl_drv.so (_init+0x5edc) [0xb6d1b87c]
[     5.697] (EE) 4: /usr/lib/xorg/modules/drivers/qxl_drv.so (_init+0xbfea) [0xb6d27b4a]
[     5.697] (EE) 5: /usr/lib/xorg/modules/drivers/qxl_drv.so (_init+0x13e09) [0xb6d374b9]
[     5.698] (EE) 6: /usr/bin/X (dixDestroyPixmap+0x15e6) [0x8078486]
[     5.698] (EE) 7: /usr/bin/X (SendErrorToClient+0x3dd) [0x807a73d]
[     5.698] (EE) 8: /usr/bin/X (_init+0x4661) [0x806c651]
[     5.700] (EE) 9: /lib/libc.so.6 (__libc_start_main+0xf3) [0xb725b963]
[     5.700] (EE) 10: /usr/bin/X (_start+0x21) [0x80687ea]
[     5.700] (EE) 
[     5.700] (EE) Segmentation fault at address 0x0

Version-Release number of selected component (if applicable):

xorg-x11-drv-qxl-0.1.1-0.7.20130514git77a1594.fc19.i686 (Fedora 19 fully updated)
xorg-x11-drv-qxl-0.1.1-0.4.20130312gita474a71.fc19.i686 (Fedora 19 RC2)

How reproducible:

Steps to Reproduce:
1. Select QXL as Video adapter and Spice as display in virt-manager
2. Run i686 install DVD or installed system in KVM

Actual results:
X crashes on start.

Comment 1 Vojtěch Boček 2013-05-20 11:39:52 UTC
Created attachment 750555 [details]

Comment 2 Vojtěch Boček 2013-05-20 11:40:27 UTC
Created attachment 750556 [details]
journalctl -a

Comment 3 Kamil Páral 2013-05-20 11:42:10 UTC
Proposing as a Beta blocker:
"The release must install and boot successfully as a virtual guest in a situation where the virtual host is running the previous stable Fedora release. "

Please note that the default option in virt-manager is VNC+Cirrus, which means the default virt-manager behavior is not affected, only if you switch to QXL manually.

Comment 4 Adam Williamson 2013-05-20 17:07:47 UTC
Discussed at 2013-05-20 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-05-20/f19beta-blocker-review-7.2013-05-20-16.07.log.txt .

This is rejected as a blocker. It seems like a bad bug, but we took a couple of things into consideration. One, KVM/libvirt virtualization is not supported on 32-bit hosts (there are very few 32-bit CPUs which have hardware VT support at all). 64-bit hosts, obviously, can host 64-bit guests just fine. So there really isn't much of a reason to run a 32-bit guest, or a 32-bit OS on a 64-bit guest: the very obvious 'workaround' is 'just use the 64-bit Fedora'.

Two, there's another reasonably simple workaround: use cirrus or vga instead of qxl. It's slower and suckier, but it does appear to work.

On balance it's also rejected as a freeze exception bug, for fear of somehow breaking the much more important 64-bit guest case with a fix.

As a side note, it would be useful to know if you're actually using a 32-bit guest here, or running 32-bit Fedora on a 64-bit guest (which would be the recommended config).

Comment 5 Adam Williamson 2013-05-20 17:10:58 UTC
FWIW, I just booted Beta RC2 32-bit netinst ISO in a 64-bit KVM on an F19 host, using qxl/SPICE, and it's running anaconda fine.

Comment 6 Kamil Páral 2013-05-21 08:01:07 UTC
Interesting. We have tested 3 different _clean_ F19 installations (64b KVM of course), it crashes on all of them. But it doesn't crash for Martin, who has an upgraded F19 system. I suppose, Adam, you also have an upgraded system, right?

That would suggest it's somehow connected new a clean configuration or there's missing some package that is present in upgraded systems.

Comment 7 Adam Williamson 2013-05-21 16:09:34 UTC
Yeah, I was testing on an upgraded host. In addition to your suspects, could be to do with the machine definition itself; they tweak the defaults over time, I'm using a machine I created a long time ago.

Comment 8 Alon Levy 2013-05-22 01:03:35 UTC
I've managed to reproduce this, it is fixed by using upstream qemu (specifically the important bit is bb1fadc444ff967554c41d96cb9dde110e8aece9), so now the question is if there is going to be a rebase of qemu for f19 or should I backport it (it will have to be a partial rewrite of the patch to avoid bringing in all the migration.c cleanup).

Paolo, what do you think?


Comment 9 Alon Levy 2013-05-22 01:04:19 UTC
(In reply to Alon Levy from comment #8)
> I've managed to reproduce this, it is fixed by using upstream qemu
> (specifically the important bit is
> bb1fadc444ff967554c41d96cb9dde110e8aece9), so now the question is if there
> is going to be a rebase of qemu for f19 or should I backport it (it will
> have to be a partial rewrite of the patch to avoid bringing in all the
> migration.c cleanup).
> Paolo, what do you think?
> Alon

sorry, wrong bz.

Comment 10 Jiri Pospisil 2013-05-23 14:20:45 UTC
Created attachment 752247 [details]
Serial console output for F18 Beta RC4 x86_64 liveCD on RHEL6.4 host with spice+qxl

The same problem happens to me even with x86_64 DVD or LiveCD image (F19 Beta RC4). I am using RHEL6.4 host. F18 works fine in the same VM.

$ rpm -qa | grep virt

Comment 11 Adam Williamson 2013-05-27 21:41:26 UTC
This commit by airlied looks significant:


in particular, it seems to have added the "mmap failure" string, which is apparently what we're hitting here.

Comment 12 Dave Airlie 2013-05-27 21:54:38 UTC
okay I'll take a look today, didn't think 32-bit was a thing any more :-)

Comment 13 Dave Airlie 2013-05-27 22:21:44 UTC
Looks like two bugs in one, please split the RHEL6.4 bug out from the 32-bit one, they are not the same thing.

Comment 14 Fedora Update System 2013-05-28 04:18:02 UTC
xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19 has been submitted as an update for Fedora 19.

Comment 15 Vojtěch Boček 2013-05-28 10:42:14 UTC
Created attachment 753821 [details]
dmesg with update xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19

xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19 does not work for me. X still crashes, dmesg and X.log attached.

Comment 16 Vojtěch Boček 2013-05-28 10:43:01 UTC
Created attachment 753822 [details]
X.log with update xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19

Comment 17 Vojtěch Boček 2013-05-28 11:16:40 UTC
Oh, my bad, sorry - I didn't realize I have to update this package in guest, not on host. After updating the package in guest, it works okay with qxl and spice, thank you.

Comment 18 Fedora Update System 2013-05-28 16:13:41 UTC
Package xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 19 Fedora Update System 2013-06-02 02:59:26 UTC
xorg-x11-drv-qxl-0.1.1-0.8.20130514git77a1594.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.