1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112 | lspci -vtnn
-[0000:00]-+-00.0 Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00]
+-01.0-[01]--+-00.0 NVIDIA Corporation GK104 [GeForce GTX 760] [10de:1187]
| \-00.1 NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a]
+-02.0 Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412]
+-03.0 Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c]
+-14.0 Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31]
+-16.0 Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a]
+-1a.0 Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d]
+-1b.0 Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20]
+-1c.0-[02]--
+-1c.3-[03]----00.0 Qualcomm Atheros Killer E220x Gigabit Ethernet Controller [1969:e091]
+-1d.0 Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26]
+-1f.0 Intel Corporation Z87 Express LPC Controller [8086:8c44]
+-1f.2 Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c02]
\-1f.3 Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22]
dmesg|grep -e DMAR -e IOMMU
[ 0.000000] ACPI: DMAR 0x00000000C8F9BAC8 0000B8 (v01 INTEL HSW 00000001 INTL 00000001)
[ 0.000000] DMAR: IOMMU enabled
[ 0.035700] DMAR: Host address width 39
[ 0.035701] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[ 0.035707] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020660462 ecap f0101a
[ 0.035708] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[ 0.035710] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008020660462 ecap f010da
[ 0.035711] DMAR: RMRR base: 0x000000c9e97000 end: 0x000000c9ea5fff
[ 0.035712] DMAR: RMRR base: 0x000000cb000000 end: 0x000000cf1fffff
[ 0.035713] DMAR-IR: IOAPIC id 8 under DRHD base 0xfed91000 IOMMU 1
[ 0.035714] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[ 0.035715] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[ 0.035993] DMAR-IR: Enabled IRQ remapping in x2apic mode
[ 0.564865] DMAR: No ATSR found
[ 0.565022] DMAR: dmar0: Using Queued invalidation
[ 0.565074] DMAR: dmar1: Using Queued invalidation
[ 0.565081] DMAR: Setting RMRR:
[ 0.565095] DMAR: Setting identity map for device 0000:00:02.0 [0xcb000000 - 0xcf1fffff]
[ 0.565408] DMAR: Setting identity map for device 0000:00:14.0 [0xc9e97000 - 0xc9ea5fff]
[ 0.565425] DMAR: Setting identity map for device 0000:00:1a.0 [0xc9e97000 - 0xc9ea5fff]
[ 0.565441] DMAR: Setting identity map for device 0000:00:1d.0 [0xc9e97000 - 0xc9ea5fff]
[ 0.565453] DMAR: Prepare 0-16MiB unity mapping for LPC
[ 0.565459] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]
[ 0.565573] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 0.716766] [drm] DMAR active, disabling use of stolen memory
dmesg | grep pci-stub
[ 1.436431] pci-stub: add 10DE:1187 sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 1.436440] pci-stub 0000:01:00.0: claimed by stub
[ 1.436444] pci-stub: add 10DE:0E0A sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 1.436449] pci-stub 0000:01:00.1: claimed by stub
cat /etc/initramfs-tools/modules
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pci_stub ids=10de:1187,10de:0e0a
cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash, intel_iommu=on"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on pci-stub.ids=8086:0c01,10de:1187,10de:0e0a"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on pcie_acs_override=downstream"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
# GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# GRUB_GFXMODE=1920x1200
# GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
|