Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2020 06:31:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS
Message-ID:  <bug-236922-27103-XGziHAqTkE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236922-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236922-27103@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 #39 from Tommy P <tommyhp2@gmail.com> ---
Created attachment 210728
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210728&action=
=3Dedit
VirtIO to support Q35 backported for FreeBSD 11.x

--------------------------------------------------

Thank you Bryan for your help with getting past (CK_S)TAILQ_FOREACH compile
errors!  I greatly appreciate it!

--------------------------------------------------

root@fbsd11-ovmf:~ # egrep -i 'sata|scsi|mass stor|virtio|sym0|em0|vtnet'
/var/log/messages | grep 'Jan 13'
Jan 13 22:10:55 fbsd11-ovmf kernel: vtpcim0: <VirtIO PCI (modern) Network
adapter> mem 0x98e00000-0x98e00fff,0x800000000-0x800003fff irq 22 at device=
 0.0
on pci1
Jan 13 22:10:55 fbsd11-ovmf kernel: vtnet0: <VirtIO Network Adapter> on vtp=
cim0
Jan 13 22:10:55 fbsd11-ovmf kernel: vtnet0: Ethernet address: 52:54:00:a9:0=
8:fb
Jan 13 22:10:55 fbsd11-ovmf kernel: sym0: <895a> port 0xb000-0xb0ff mem
0x98c02000-0x98c023ff,0x98c00000-0x98c01fff irq 22 at device 0.0 on pci2
Jan 13 22:10:55 fbsd11-ovmf kernel: sym0: No NVRAM, ID 7, Fast-40, LVD, par=
ity
checking
Jan 13 22:10:55 fbsd11-ovmf kernel: vtpcim1: <VirtIO PCI (modern) SCSI adap=
ter>
mem 0x98a00000-0x98a00fff,0x800100000-0x800103fff irq 22 at device 0.0 on p=
ci3
Jan 13 22:10:55 fbsd11-ovmf kernel: vtscsi0: <VirtIO SCSI Adapter> on vtpci=
m1
Jan 13 22:10:55 fbsd11-ovmf kernel: vtpcim2: <VirtIO PCI (modern) Console
adapter> mem 0x98800000-0x98800fff,0x800200000-0x800203fff irq 22 at device=
 0.0
on pci4
Jan 13 22:10:55 fbsd11-ovmf kernel: vtpcim3: <VirtIO PCI (modern) Balloon
adapter> mem 0x800300000-0x800303fff irq 22 at device 0.0 on pci5
Jan 13 22:10:55 fbsd11-ovmf kernel: vtballoon0: <VirtIO Balloon Adapter> on
vtpcim3
Jan 13 22:10:55 fbsd11-ovmf kernel: vtpcim4: <VirtIO PCI (modern) Block
adapter> mem 0x98400000-0x98400fff,0x800400000-0x800403fff irq 22 at device=
 0.0
on pci6
Jan 13 22:10:55 fbsd11-ovmf kernel: vtblk0: <VirtIO Block Adapter> on vtpci=
m4
Jan 13 22:10:55 fbsd11-ovmf kernel: em0: <Intel(R) PRO/1000 Legacy Network
Connection 1.1.0> port 0x6000-0x603f mem 0x98000000-0x9801ffff irq 21 at de=
vice
1.0 on pci8
Jan 13 22:10:55 fbsd11-ovmf kernel: em0: Ethernet address: 52:54:00:4e:d4:8f
Jan 13 22:10:55 fbsd11-ovmf kernel: ahci0: <Intel ICH9 AHCI SATA controller>
port 0xc240-0xc25f mem 0x99002000-0x99002fff irq 16 at device 31.2 on pci0
Jan 13 22:10:55 fbsd11-ovmf kernel: ada0: <QEMU HARDDISK 2.5+> ATA-7 SATA
device
Jan 13 22:10:55 fbsd11-ovmf kernel: ada0: 150.000MB/s transfers (SATA 1.x,
UDMA5, PIO 8192bytes)
Jan 13 22:10:55 fbsd11-ovmf kernel: pass0: <QEMU QEMU DVD-ROM 2.5+> Removab=
le
CD-ROM SCSI device
Jan 13 22:10:55 fbsd11-ovmf kernel: pass0: 150.000MB/s transfers (SATA 1.x,
UDMA5, ATAPI 12bytes, PIO 8192bytes)
Jan 13 22:10:55 fbsd11-ovmf kernel: em0: link state changed to UP

root@fbsd11-ovmf:~ # ls /dev/{ada,da,vtbd}*
/dev/ada0       /dev/ada0p1     /dev/ada0p2     /dev/vtbd0      /dev/vtbd0p=
1=20=20=20
/dev/vtbd0p2

root@fbsd11-ovmf:~ # ifconfig
vtnet0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=20=20=20=20=20=20=20
options=3D4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSU=
M,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
        ether 52:54:00:a9:08:fb
        hwaddr 52:54:00:a9:08:fb
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
=20=20=20=20=20=20=20
options=3D209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 52:54:00:4e:d4:8f
        hwaddr 52:54:00:4e:d4:8f
        inet ... netmask 0xffffff00 broadcast ...255
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo

root@fbsd11-ovmf:~ # uname -a
FreeBSD fbsd11-ovmf 11.3-RELEASE-p5 FreeBSD 11.3-RELEASE-p5 #0 r356701M: Mon
Jan 13 22:08:55 PST 2020
--------------------------------------------------
The above is from OVMF + Q35 VM.  Should also work w/o OVMF.  This all
inclusive (netmap + updates in stable/12).

1) cd /usr/src
2) tar -xJvf <path/to/>virtio_11.xz
3) patch < sys_conf_files_v11.2.patch
4) make kernel
5) reboot

I'll update the patches as soon as netmap is fixed for PCI-e bus.  Please l=
et
me know if you have any issues.

--=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-27103-XGziHAqTkE>