Red Hat Bugzilla – Bug 501550
virtio console device has lame PCI class info
Last modified: 2010-03-11 14:23:29 EST
Description of problem:
00:05.0 Unclassified device [00ff]: Qumranet, Inc. Virtio console
Subsystem: Qumranet, Inc. Device 0003
Physical Slot: 5
Flags: fast devsel, IRQ 10
I/O ports at c220 [size=32]
Kernel driver in use: virtio-pci
Kernel modules: virtio_pci
While this is valid, many versions of X will get confused by it. Class major number of 0 gets treated as a possibly prehistoric VGA device, and then the autoconfig logic gets confused trying to figure out whether the virtio console or the pv vga device are the real VGA.
Worked around in the X server in F11, but we should really set a proper class ID. 0x0780 (serial / other) seems most appropriate. Attached patch does this. Shouldn't require any kernel changes, the modalias for virtio looks like:
so won't care what the base class or subclass are.
Version-Release number of selected component (if applicable):
Created attachment 344655 [details]
Interesting that qemu-kvm actually changed from qemu's PCI_CLASS_DISPLAY_OTHER:
I've posted a re-based version of your patch to qemu-devel:
Subject: [PATCH] Change virtio-console to PCI_CLASS_SERIAL_OTHER
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This should be fixed in qemu 0.12.x