Show Table of Contents
6.4. I/O 模式
I/O 模式选项可以在客机安装期间用 virt-manager 进行配置,或通过编辑客机 XML 配置在现存的客户虚拟机中配置。
表 6.2. IO 模式选项
| IO 模式选项 | 描述 |
|---|---|
| IO=native | Red Hat Enterprise Virtualization 环境的默认值。该模式适用于直接 I/O 选项的 kernel 非同步 I/O。 |
| IO=threads | 默认为基于主机用户模式的线程。 |
| IO=default | Red Hat Enterprise Linux 7 默认为线程模式。 |
对客户虚拟机 XML 中的 I/O 模式进行配置时,编辑
driver 标签中的 io 设置,指定 native、threads 或 default。例如,将 I/O 模式设置为 threads:
<disk type='file' device='disk'>
<driver name='qemu' type='raw' io='threads'/>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.