Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a note of the different commands used in vm-passthroughs.
- -COMMAND:»
- ./IOMMU-CHECK.sh
- -CODE:»
- #!/bin/bash
- shopt -s nullglob
- for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
- echo "IOMMU Group ${g##*/}:"
- for d in $g/devices/*; do
- echo -e "\t$(lspci -nns ${d##*/})"
- done;
- done;
- It combines two commands basically, "sudo dmesg | grep -i -e DMAR -e IOMMU" and "lspci -nn".
- -OUTPUT:»
- IOMMU Group 0:
- 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
- IOMMU Group 1:
- 00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
- IOMMU Group 2:
- 00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
- IOMMU Group 3:
- 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
- IOMMU Group 4:
- 00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
- IOMMU Group 5:
- 00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
- IOMMU Group 6:
- 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
- IOMMU Group 7:
- 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
- IOMMU Group 8:
- 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
- IOMMU Group 9:
- 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14dd]
- IOMMU Group 10:
- 00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14dd]
- IOMMU Group 11:
- 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 71)
- 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
- IOMMU Group 12:
- 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e0]
- 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e1]
- 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e2]
- 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e3]
- 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e4]
- 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e5]
- 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e6]
- 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14e7]
- IOMMU Group 13:
- 01:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch [1002:1478] (rev c5)
- IOMMU Group 14:
- 02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]
- IOMMU Group 15:
- 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c5)
- IOMMU Group 16:
- 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
- IOMMU Group 17:
- 04:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. KC2000 NVMe SSD [2646:2262] (rev 03)
- IOMMU Group 18:
- 05:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f4] (rev 01)
- IOMMU Group 19:
- 06:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 07:00.0 Non-Volatile memory controller [0108]: Micron/Crucial Technology P1 NVMe PCIe SSD [c0a9:2263] (rev 03)
- IOMMU Group 20:
- 06:08.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 08:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f4] (rev 01)
- 09:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 09:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 09:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 09:08.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 09:0c.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 09:0d.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 0b:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
- 0c:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
- 0e:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f7] (rev 01)
- 0f:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f6] (rev 01)
- IOMMU Group 21:
- 06:0c.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 10:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f7] (rev 01)
- IOMMU Group 22:
- 06:0d.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f5] (rev 01)
- 11:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f6] (rev 01)
- IOMMU Group 23:
- 12:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. Device [2646:5017] (rev 03)
- IOMMU Group 24:
- 13:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c2)
- IOMMU Group 25:
- 13:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
- IOMMU Group 26:
- 13:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP [1022:1649]
- IOMMU Group 27:
- 13:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b6]
- IOMMU Group 28:
- 13:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b7]
- IOMMU Group 29:
- 13:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
- IOMMU Group 30:
- 14:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b8]
- -COMMAND:»
- lscpu -e
- -OUTPUT:»
- CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ MINMHZ MHZ
- 0 0 0 0 0:0:0:0 yes 5732,7139 3000,0000 3697,2749
- 1 0 0 1 1:1:1:0 yes 5732,7139 3000,0000 3000,0000
- 2 0 0 2 2:2:2:0 yes 5732,7139 3000,0000 2926,0840
- 3 0 0 3 3:3:3:0 yes 5732,7139 3000,0000 3000,0000
- 4 0 0 4 4:4:4:0 yes 5732,7139 3000,0000 2820,3970
- 5 0 0 5 5:5:5:0 yes 5732,7139 3000,0000 2864,0291
- 6 0 0 6 8:8:8:1 yes 5732,7139 3000,0000 3741,8130
- 7 0 0 7 9:9:9:1 yes 5732,7139 3000,0000 3000,0000
- 8 0 0 8 10:10:10:1 yes 5732,7139 3000,0000 4013,5259
- 9 0 0 9 11:11:11:1 yes 5732,7139 3000,0000 2877,9309
- 10 0 0 10 12:12:12:1 yes 5732,7139 3000,0000 2873,8279
- 11 0 0 11 13:13:13:1 yes 5732,7139 3000,0000 2900,3301
- 12 0 0 0 0:0:0:0 yes 5732,7139 3000,0000 3592,0161
- 13 0 0 1 1:1:1:0 yes 5732,7139 3000,0000 3000,0000
- 14 0 0 2 2:2:2:0 yes 5732,7139 3000,0000 3000,0000
- 15 0 0 3 3:3:3:0 yes 5732,7139 3000,0000 3000,0000
- 16 0 0 4 4:4:4:0 yes 5732,7139 3000,0000 3000,0000
- 17 0 0 5 5:5:5:0 yes 5732,7139 3000,0000 3000,0000
- 18 0 0 6 8:8:8:1 yes 5732,7139 3000,0000 4415,5078
- 19 0 0 7 9:9:9:1 yes 5732,7139 3000,0000 3000,0000
- 20 0 0 8 10:10:10:1 yes 5732,7139 3000,0000 3000,0000
- 21 0 0 9 11:11:11:1 yes 5732,7139 3000,0000 2870,7581
- 22 0 0 10 12:12:12:1 yes 5732,7139 3000,0000 2735,6169
- 23 0 0 11 13:13:13:1 yes 5732,7139 3000,0000 2798,3369
- -COMMAND:»
- lscpu
- -OUTPUT:»
- Architecture: x86_64
- CPU op-mode(s): 32-bit, 64-bit
- Address sizes: 48 bits physical, 48 bits virtual
- Byte Order: Little Endian
- CPU(s): 24
- On-line CPU(s) list: 0-23
- Vendor ID: AuthenticAMD
- Model name: AMD Ryzen 9 7900X 12-Core Processor
- CPU family: 25
- Model: 97
- Thread(s) per core: 2
- Core(s) per socket: 12
- Socket(s): 1
- Stepping: 2
- Frequency boost: enabled
- CPU(s) scaling MHz: 57%
- CPU max MHz: 5732,7139
- CPU min MHz: 3000,0000
- BogoMIPS: 9403,71
- Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl
- pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_
- nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni a
- vx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeas
- sists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
- Virtualization features:
- Virtualization: AMD-V
- Caches (sum of all):
- L1d: 384 KiB (12 instances)
- L1i: 384 KiB (12 instances)
- L2: 12 MiB (12 instances)
- L3: 64 MiB (2 instances)
- NUMA:
- NUMA node(s): 1
- NUMA node0 CPU(s): 0-23
- Vulnerabilities:
- Itlb multihit: Not affected
- L1tf: Not affected
- Mds: Not affected
- Meltdown: Not affected
- Mmio stale data: Not affected
- Retbleed: Not affected
- Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
- Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
- Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
- Srbds: Not affected
- Tsx async abort: Not affected
- --- -CPU- 'PINNING IN VM OVERVIEW UNDER' </vcpu>
- <iothreads>1</iothreads>
- <cputune>
- <vcpupin vcpu="0" cpuset="6"/>
- <vcpupin vcpu="1" cpuset="18"/>
- <vcpupin vcpu="2" cpuset="7"/>
- <vcpupin vcpu="3" cpuset="19"/>
- <vcpupin vcpu="4" cpuset="8"/>
- <vcpupin vcpu="5" cpuset="20"/>
- <vcpupin vcpu="6" cpuset="9"/>
- <vcpupin vcpu="7" cpuset="21"/>
- <vcpupin vcpu="8" cpuset="10"/>
- <vcpupin vcpu="9" cpuset="22"/>
- <vcpupin vcpu="10" cpuset="11"/>
- <vcpupin vcpu="11" cpuset="23"/>
- <emulatorpin cpuset="0-5,12-17"/>
- <iothreadpin iothread="1" cpuset="0-5,12-17"/>
- </cputune>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement