summaryrefslogtreecommitdiff
path: root/src/pci_passthrough.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/pci_passthrough.md')
-rw-r--r--src/pci_passthrough.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pci_passthrough.md b/src/pci_passthrough.md
index 4c8ee97..4bf3a65 100644
--- a/src/pci_passthrough.md
+++ b/src/pci_passthrough.md
@@ -25,7 +25,7 @@ Once you have enabled IOMMU, you will need to ensure that your PCI slot can actu
To list IOMMU groups, you may use this script from the [archwiki](https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Ensuring_that_the_groups_are_valid)
-```bash
+```
#!/bin/bash
shopt -s nullglob
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
@@ -121,11 +121,11 @@ qemu-system-x86_64 \
-net nic,model=virtio -net user \
-device ich9-intel-hda,addr=0x1b \
-device hda-micro,audiodev=hda \
- -audiodev pa,id=hda,server=unix:$(pa_server) \
- $(evdev_passthrough)
+ -device ich9-intel-hda,addr=0x1b \
+ -device hda-micro,audiodev=hda \
+ -audiodev pa,id=hda,server=unix:$(pactl info | sed -rn 's/Server String: (.*)/\1/p') \
```
-
### Basic Parameters
```