[Bug 260148] passthru stopped working

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Nov 2021 23:37:05 UTC

--- Comment #3 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
(In reply to Mark Johnston from comment #2)

we do on the host; we should also do this on a bhyve restart;

order of events as I understand them currently:

host boot
bhyve boot
driver load
driver unload (disabling bar)
bhyve shutdown
bhyve start -- fails as bar is not enabled.

My understanding was that pci_emul_alloc_bar() called right before
pci_msix_table_bar() in cfginitbar() should enable the resources again setting
PCIM_CMD_MEMEN.   So the mmap should not fail.

I am currently seeing if anything makes this not work as I thought it would or
if I am misunderstanding something.

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