[Bug 222996] FreeBSD 11.1-12 on Hyper-V with PCI Express Pass Through

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 222996] FreeBSD 11.1-12 on Hyper-V with PCI Express Pass Through

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222996

--- Comment #17 from Wei Hu <[hidden email]> ---
It turns out the address between 0xf8000000 and 0xf87fffff on HyperV doesn't
work for MMIO or FreeBSD has bug to incorrectly assign device MMIO address to
this range. When manually assign the em0 MMIO address to and above 0xf8800000,
the passthrough NIC works fine.

On same Gen 2 Linux VM, the device was assigned MMIO address above this range.
On Gen 1 FreeBSD VM, the same card was assigned to an address above 4G. So both
of these works fine.

The workaround I am using is intercepting the memory allocation request,
changing the starting address to 0xf8800000 whenever find a request fall into
this problem range. This works fine on customer's site. However still need to
root cause the issue when this only happens on FreeBSD Gen 2 VMs, not other
Linux Gen 2 VMs.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to "[hidden email]"