| Main index | Section 4 | Options |
vmm_load="YES"
The module can also be loaded manually with kldload(8):
kldload vmm
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.
Note that vmm must be given first the right of refusal to all pci(4) devices it may need to claim. As a result, the vmm kernel module almost certainly needs to be loaded from loader.conf(5) rather than by adding it to kld_list in rc.conf(5).
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.
| hw.vmm.maxcpu | |
| Maximum number of virtual CPUs. The default is the number of physical CPUs in the system. | |
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
| VMM (4) | September 27, 2024 |
| Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
