update article structure

This commit is contained in:
Tsanie Lily 2019-05-31 16:20:55 +08:00
parent 764a716dfe
commit 7b1a1b8387

View File

@ -27,7 +27,7 @@ CPU 和主板需要支持 `IOMMU` (I/O Memory Management Unit) 中断重映射
一旦确保硬件支持直通,你还需要做一些配置来启用 PCI(e) 直通功能。 一旦确保硬件支持直通,你还需要做一些配置来启用 PCI(e) 直通功能。
### IOMMU ### #### IOMMU ####
必须在内核命令上激活 IOMMU。最简单的方法是通过 grub 来启用,编辑 `/etc/default/grub`,在 `GRUB_CMDLINE_LINUX_DEFAULT` 变量中加入以下参数: 必须在内核命令上激活 IOMMU。最简单的方法是通过 grub 来启用,编辑 `/etc/default/grub`,在 `GRUB_CMDLINE_LINUX_DEFAULT` 变量中加入以下参数:
@ -46,7 +46,7 @@ amd_iommu=on
# update-grub # update-grub
``` ```
### 内核模块 ### #### 内核模块 ####
必须确保加载以下模块,添加以下行到 `/etc/modules` 中来实现。 必须确保加载以下模块,添加以下行到 `/etc/modules` 中来实现。
``` ```
@ -61,7 +61,7 @@ vfio_virqfd
# update-initramfs -u -k all # update-initramfs -u -k all
``` ```
### 完成设置 ### #### 完成设置 ####
重启服务器使设置生效,并用以下命令检查: 重启服务器使设置生效,并用以下命令检查:
```shell ```shell