[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:33:01 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236922

--- Comment #7 from Tommy P <tommyhp2 at gmail.com> ---
After reviewing the Linux code for the virtio, I'm more confident that my hunch
is correct regarding the FreeBSD virtio driver.



        if (pci_dev->device < 0x1040) {
                /* Transitional devices: use the PCI subsystem device id as
                 * virtio device id, same as legacy driver always did.
                 */
                vp_dev->vdev.id.device = pci_dev->subsystem_device;
        } else {
                /* Modern devices: simply use PCI device id, but start from
0x1040. */
                vp_dev->vdev.id.device = pci_dev->device - 0x1040;
}


from:
https://github.com/torvalds/linux/blob/v5.0/drivers/virtio/virtio_pci_modern.c

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


More information about the freebsd-bugs mailing list