![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSISTo load the driver as a module at boot, add this line to loader.conf(5):
The module can also be loaded manually with kldload(8): kldload vmm DESCRIPTION
An Intel CPU with VT-x/EPT or AMD CPU with SVM support is required. PCI device passthrough to a virtual machine requires hardware with VT-d support. PCI PASSTHROUGHWhen the hardware supports VT-d, and
Note that A large number of PCI device entries may require a string longer than the 128-character limit of loader.conf(5) variables. The pptdevs2 and pptdevs3 variables can be used for additional entries. LOADER TUNABLESTunables can be set at the loader(8) prompt before booting the kernel or stored in loader.conf(5).
EXAMPLESReserve three PCI devices for use by the hypervisor: bus 10 slot 0 function 0, bus 6 slot 5 function 0, and bus 6 slot 5 function 1. pptdevs="10/0/0 6/5/0 6/5/1" It is possible to detach ppt from a PCI device without rebooting the host machine and then attach a host driver, using the devctl(8) utility. Suppose ppt is currently attached to pci0:0:1:0 and we want the host's xhci(4) driver to be attached instead: # devctl set driver -f pci0:0:1:0 xhci The same can be applied to attach ppt back: # devctl set driver -f pci0:0:1:0 ppt SEE ALSObhyve(4), loader.conf(5), bhyve(8), bhyveload(8), devctl(8), kldload(8) HISTORY
AUTHORSNeel Natu ⟨neel@freebsd.org⟩
|