docs: update virt/host/modules

This commit is contained in:
lukas 2023-02-05 17:42:43 +00:00
parent 9d832043af
commit 3200d79b35

View File

@ -2,7 +2,7 @@
title: Kernel modules
description:
published: true
date: 2023-02-05T17:33:05.770Z
date: 2023-02-05T17:42:41.494Z
tags:
editor: markdown
dateCreated: 2021-11-13T11:58:03.276Z
@ -15,7 +15,7 @@ dateCreated: 2021-11-13T11:58:03.276Z
## IOMMU-enablement
By default, Linux distributions do not generally enable IOMMU groups, a prerequisite to use VFIO passthrough.
By default, Linux distributions do not generally enable IOMMU groups, a prerequisite to share real hardware to virtual machines using modern virtualization techniques.
### With GRUB as a bootloader
@ -38,8 +38,8 @@ By default, Linux distributions do not generally enable IOMMU groups, a prerequi
```
cat /etc/default/grub
```
Then, one needs to regenerate GRUB.
* On Debian-based distributions:
@ -68,6 +68,13 @@ echo "options kvm_intel nested=1" >> /etc/modprobe.d/kvm.conf
echo "options kvm_amd nested=1" >> /etc/modprobe.d/kvm.conf
```
* Enabling VMCS shadowing may give a large performance boost on Haswell CPUs and later. Append that `enable_shadow_vmcs=1` to *kvm.conf*. It should look like that:
```
cat /etc/modprobe.d/kvm.conf
options kvm_intel nested=1 enable_shadow_vmcs=1
```
## Virtualization-related kernel modules
This list is only concerned about kernel modules that relates to virtualization. Their description can be found using the `modinfo` command.
@ -117,3 +124,7 @@ irqbypass # "IRQ bypass manager utility module"
net_failover # "Failover driver for Paravirtual drivers"
failover # "Generic failover infrastructure/interface"
```
## Ressources
* https://storpool.com/blog/nested-virtualization-with-kvm-and-opennebula/