Setting intel_iommu to "on" for KVM

I am trying to edit the kernel parameters during runtime to set intel_iommu to =on. However I cannot find any documentation anywhere on how to do so with only Manjaro on my system (a lot of (the very few) forum posts I see about doing this talk about dual booting). I’ve tried using sysctl but to no avail (unless I was using it incorrectly with this parameter).

System:
  Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=a362d80d-f006-4006-ab0b-ba1433d6a639 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Micro-Star product: GV72 7RE v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-1799 v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E1799IMS.31C date: 10/24/2017 
Battery:
  ID-1: BAT1 charge: 36.2 Wh (100.0%) condition: 36.2/42.4 Wh (85.5%) 
  volts: 12.2 min: 10.8 model: MSI BIF0_9 type: Li-ion serial: N/A 
  status: Full 
Memory:
  RAM: total: 7.69 GiB used: 3.39 GiB (44.1%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 9E (158) stepping: 9 microcode: DE 
  cache: L2: 6 MiB bogomips: 44817 
  Speed: 1600 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 1600 2: 1596 
  3: 1600 4: 1591 5: 1600 6: 1600 7: 1600 8: 1593 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Micro-Star MSI driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] vendor: Micro-Star MSI 
  driver: nvidia v: 465.31 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1c8c class-ID: 0302 
  Device-3: Chicony USB 2.0 Webcam Device type: USB driver: uvcvideo 
  bus-ID: 1-11:7 chip-ID: 04f2:b521 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
  loaded: modesetting,nvidia display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
  s-diag: 583mm (23") 
  Monitor-1: eDP-1-1 res: 1920x1080 hz: 60 dpi: 128 
  size: 382x215mm (15.0x8.5") diag: 438mm (17.3") 
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 465.31 direct render: Yes 
Audio:
  Device-1: Intel CM238 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
  v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403 
  Device-2: Creative Sound Blaster X3 type: USB 
  driver: cdc_acm,hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:2 
  chip-ID: 041e:3264 class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel port: e000 bus-ID: 02:00.0 chip-ID: 8086:24fb class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: Micro-Star MSI 
  driver: alx v: kernel port: d000 bus-ID: 03:00.0 chip-ID: 1969:10a1 
  class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-10:6 chip-ID: 8087:0aa7 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Logical:
  Permissions: Unable to run lvs. Root privileges required. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.03 TiB used: 47.32 GiB (4.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: MZNLN128HAHQ-00000 
  size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 200Q scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HTS541010B7E610 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 1A01 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 118.95 GiB size: 116.52 GiB (97.96%) 
  used: 34.07 GiB (29.2%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: a362d80d-f006-4006-ab0b-ba1433d6a639 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 288 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL 
  uuid: 2767-44D2 
  ID-3: /media/games raw-size: 931.51 GiB size: 915.82 GiB (98.31%) 
  used: 13.25 GiB (1.4%) fs: ext4 dev: /dev/sdb maj-min: 8:16 label: Data 
  uuid: 093c9f1e-4abf-4902-bd42-a6018235c8f1 
Swap:
  Alert: No swap data was found. 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-3:2 info: Creative Sound Blaster X3 
  type: HID,Abstract (modem),CDC-Data,Audio 
  driver: cdc_acm,hid-generic,snd-usb-audio,usbhid interfaces: 7 rev: 2.0 
  speed: 480 Mb/s power: 100mA chip-ID: 041e:3264 class-ID: 0102 
  serial: <filter> 
  Device-2: 1-4:3 info: HUION Huion Tablet type: Mouse driver: uclogic,usbhid 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 480mA chip-ID: 256c:006d 
  class-ID: 0301 
  Device-3: 1-7:4 info: MSI steel series rgb keyboard type: HID driver: usbhid 
  interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 2mA chip-ID: 1770:ff00 
  class-ID: 0300 serial: <filter> 
  Device-4: 1-8:5 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c08b class-ID: 0300 serial: <filter> 
  Device-5: 1-10:6 info: Intel Wireless-AC 3168 Bluetooth type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 8087:0aa7 class-ID: e001 
  Device-6: 1-11:7 info: Chicony USB 2.0 Webcam Device type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 04f2:b521 class-ID: 0e02 serial: <filter> 
  Device-7: 1-12:8 info: Realtek RTS5129 Card Reader Controller 
  type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129 
  class-ID: ff00 serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 76.0 C mobo: 27.8 C gpu: nvidia temp: 65 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 270 Uptime: 26m wakeups: 1 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 alt: 10 clang: 12.0.0 Packages: 1284 pacman: 1261 
  lib: 341 flatpak: 7 snap: 16 Shell: Bash v: 5.1.8 running-in: xfce4-terminal 
  inxi: 3.3.05

Can anyone guide me through this?

https://wiki.archlinux.org/title/Sysctl

Figured it out, I typed into terminal sudo nano /etc/default/grub and added intel_iommu=on iommu=pt to GRUB_CMD_LINUX=" "

Hmm, that is setting those kernel parameters “on boot” and not quite:

or you would have gotten the link to
https://wiki.archlinux.org/title/Kernel_parameters#GRUB
But I’m glad you got it working for you.

Sorry I meant editing them on runtime as in, I edit them whilst using the OS, not like when I launch the PC then go into some menu then edit then edit it there

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.