[Bug 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 1 08:02:26 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236922
--- Comment #6 from Tommy P <tommyhp2 at gmail.com> ---
Upon further investigation, I did a quick and dirty hack of the source code:
pci/virtio_pci.c:247:/* if (pci_get_revid(dev) != VIRTIO_PCI_ABI_VERSION) */
pci/virtio_pci.c:248: if (pci_get_revid(dev) != VIRTIO_PCI_ABI_VERSION_MIN &&
pci/virtio_pci.c:249: pci_get_revid(dev) != VIRTIO_PCI_ABI_VERSION_MAX)
pci/virtio_pci.h:47:/* #define VIRTIO_PCI_ABI_VERSION 0 */
pci/virtio_pci.h:48:#define VIRTIO_PCI_ABI_VERSION_MIN 0
pci/virtio_pci.h:49:#define VIRTIO_PCI_ABI_VERSION_MAX 1
and rebuilt the kernel. Upon reboot with the modified source codes of
virtio_pci.*
the virtio driver still didn't load but I got this in dmesg:
virtio_pci0: <VirtIO PCI Unknown adapter> mem
0xfce00000-0xfce00fff,0xfea00000-0xfea03fff irq 22 at device 0.0 on pci1
virtio_pci0: cannot map I/O space
device_attach: virtio_pci0 attach returned 6
pcib2: <PCI-PCI bridge> mem 0xfd013000-0xfd013fff irq 22 at device 2.1 on pci0
pci2: <PCI bus> on pcib2
virtio_pci0: <VirtIO PCI Unknown adapter> mem
0xfcc00000-0xfcc00fff,0xfe800000-0xfe803fff irq 22 at device 0.0 on pci2
virtio_pci0: cannot map I/O space
device_attach: virtio_pci0 attach returned 6
pcib3: <PCI-PCI bridge> mem 0xfd014000-0xfd014fff irq 22 at device 2.2 on pci0
pci3: <PCI bus> on pcib3
virtio_pci0: <VirtIO PCI Unknown adapter> mem 0xfe600000-0xfe603fff irq 22 at
device 0.0 on pci3
virtio_pci0: cannot map I/O space
device_attach: virtio_pci0 attach returned 6
pcib4: <PCI-PCI bridge> mem 0xfd015000-0xfd015fff irq 22 at device 2.3 on pci0
pci4: <PCI bus> on pcib4
virtio_pci0: <VirtIO PCI Unknown adapter> mem
0xfc880000-0xfc880fff,0xfe400000-0xfe403fff irq 22 at device 0.0 on pci4
virtio_pci0: cannot map I/O space
device_attach: virtio_pci0 attach returned 6
pcib5: <PCI-PCI bridge> mem 0xfd016000-0xfd016fff irq 22 at device 2.4 on pci0
pci5: <PCI bus> on pcib5
virtio_pci0: <VirtIO PCI Unknown adapter> mem
0xfc600000-0xfc600fff,0xfe200000-0xfe203fff irq 22 at device 0.0 on pci5
virtio_pci0: cannot map I/O space
device_attach: virtio_pci0 attach returned 6
Looks like a lot more needed than my quick dirty hack and way beyond my
knowledge of FreeBSD kernel :(.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list