Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Apr 2019 08:02:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS
Message-ID:  <bug-236922-227-45nzxHZvxf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236922-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236922-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922

--- Comment #6 from Tommy P <tommyhp2@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) !=3D VIRTIO_PCI_ABI_VERSION)=
 */
pci/virtio_pci.c:248:   if (pci_get_revid(dev) !=3D VIRTIO_PCI_ABI_VERSION_=
MIN &&
pci/virtio_pci.c:249:       pci_get_revid(dev) !=3D 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 p=
ci0
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 p=
ci0
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 p=
ci0
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 p=
ci0
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 :(.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236922-227-45nzxHZvxf>