merge-requests/4/head
Yuri Alek 6 years ago
parent b60952682a
commit eee0c03420

@ -6,7 +6,7 @@
```
### Enabling IOMMU support on boot
For systemd-boot, edit `/boot/loader/entries/arch.conf` and add `intel_iommu=on` **OR** `amd_iommu=on` and `iommu=pt`.
For `systemd-boot`, edit `/boot/loader/entries/arch.conf` and add `intel_iommu=on` **OR** `amd_iommu=on` and `iommu=pt`.
```
# AMD
options root=/dev/sda2 amd_iommu=on iommu=pt
@ -14,8 +14,9 @@ options root=/dev/sda2 amd_iommu=on iommu=pt
# Intel
options root=/dev/sda2 intel_iommu=on iommu=pt
```
For GRUB edit `/etc/default/grub` and append your kernel options to the `GRUB_CMDLINE_LINUX_DEFAULT`.
Reboot.
----
For `GRUB` edit `/etc/default/grub` and append your kernel options to the `GRUB_CMDLINE_LINUX_DEFAULT`.
```
# AMD
GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=on iommu=pt"
@ -28,7 +29,7 @@ And then automatically re-generate the grub.cfg file with:
# grub-mkconfig -o /boot/grub/grub.cfg
```
Reboot.
----
After reboot IOMMU should be working
```
[yu@ryzen ~]$ dmesg | grep -e DMAR -e IOMMU
@ -38,9 +39,11 @@ After reboot IOMMU should be working
[ 0.494644] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
```
That's everything, unlike two GPU passthrough you don't need to load kernel modules on boot.
That's everything; unlike two GPU passthrough you don't need to load kernel modules on boot.
## For more information refer to this guides
https://wiki.archlinux.org/index.php/QEMU
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
https://www.se7ensins.com/forums/threads/how-to-setup-a-gaming-virtual-machine-with-gpu-passthrough-qemu-kvm-libvirt-and-vfio.1371980/
[ArchWiki QEMU](https://wiki.archlinux.org/index.php/QEMU)
[ArchWiki PCI passthrough via OVMF](https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF)
[How to setup a gaming virtual machine with gpu passthrough qemu kvm libvirt and vfio](https://www.se7ensins.com/forums/threads/how-to-setup-a-gaming-virtual-machine-with-gpu-passthrough-qemu-kvm-libvirt-and-vfio.1371980/)

Loading…
Cancel
Save