[Bug 292750] Jailed bhyve passthru fails with: "bhyve: PCI device at 9/0/0 is not using the ppt(4) driver"

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 02 Feb 2026 18:09:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292750

--- Comment #3 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to leper from comment #2)
> Also see bug 251046 in which you enabled PCI passthru in jails once already.

Well, that was really just a side effect of my change; my real motivation was
to make bhyve avoid opening /dev/kmem and /dev/io.

I think what I'll do for this case is add a new jail flag, allow.vmm.ppt, to
allow admins to explicitly opt-in.  ppt requires, among other things, the
ability to reset devices, and PRIV_DRIVER checks are used to prevent this from
userspace, even if /dev/devctl2 is passed into the jail.  In particular it
should be possible to run VMs in a jail without giving access to these ppt
ioctls.

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