Bug 742836 - Setting multifunction=on breaks SPICE/QXL multihead support in Windows
Summary: Setting multifunction=on breaks SPICE/QXL multihead support in Windows
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Laine Stump
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-03 03:44 UTC by Laine Stump
Modified: 2011-10-09 19:50 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.9.6-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-09 19:50:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laine Stump 2011-10-03 03:44:32 UTC
Description of problem:
Since libvirt started adding multifunction=on to PCI devices, SPICE/QXL multihead support in Windows no longer works.

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

libvirt-0.9.3-1.el6

Steps to Reproduce:
1. Create a Windows XP guest with SPICE graphics + QXL display adapter
2. Install QXL graphics device driver in Windows
3. Stop the guest
4. Add a second <video> element to the guest for QXL display adapter
5. Start the guest again
6. Configure the QXL device driver for the second display

Actual results:
Windows fails to start the QXL device driver with an error 'Code 10'

Expected results:
The second device is initialized.

---

In response to a suggestion by Dan Berrange on libvir-list:

  https://www.redhat.com/archives/libvir-list/2011-September/msg01036.html

I pushed the following patch to upstream libvirt, which removes the automatic setting of the multifunction bit, in favor of an XML attribute to turn it on as desired:

commit c329db7180d77c8077b9f9cd167a71d7f347227a
Author: Laine Stump <laine>
Date:   Thu Sep 29 13:00:32 2011 -0400

    qemu: make PCI multifunction support more manual
    
This allows exact control of when the multifunction bit should be turned on/off for each slot/function on the guest's PCI bus, eliminating the issue with the QXL driver's (and possibly/probably other drivers') lack of multifunction support.

Comment 1 Fedora Update System 2011-10-03 16:06:55 UTC
libvirt-0.9.6-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libvirt-0.9.6-2.fc16

Comment 2 Fedora Update System 2011-10-03 17:45:17 UTC
Package libvirt-0.9.6-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libvirt-0.9.6-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/libvirt-0.9.6-2.fc16
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-10-09 19:50:53 UTC
libvirt-0.9.6-2.fc16 has been pushed to the Fedora 16 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.