Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2020 11:58:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251046] bhyve PCI passthrough does not work inside jail
Message-ID:  <bug-251046-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251046

            Bug ID: 251046
           Summary: bhyve PCI passthrough does not work inside jail
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: cneirabustos@gmail.com

Created attachment 219550
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D219550&action=
=3Dedit
Patch to make bhyve pci passthru work inside a jail

on FreeBSD 12.2-RELEASE is possible to run bhyve inside a jail, but testing=
=20
passthru revealed that this not work inside a jail.
The problem is that the jail needs r/w access to the following devices:

* /dev/mem
* /dev/io
* /dev/pci

/dev/pci is not a problem with a securelevel < 0. But the rest needs a patc=
h.
I have attached a rough patch to make bhyve pci passthrough work inside a
jail,I also have attached jail.conf and devfs.rules used for testing.=20
This was tested in jail using vnet.

--=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-251046-227>