Skip to content

Commit 922413d

Browse files
authored
Update ch9 2device-driver-2.rst
1 parent 2106ab0 commit 922413d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/chapter9/2device-driver-2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ virtio设备交互机制包括基于Notifications的事件通知和基于virtque
190190

191191
驱动程序和设备在交互过程中需要相互通知对方:驱动程序组织好相关命令/信息要通知设备去处理I/O事务,设备处理完I/O事务后,要通知驱动程序进行后续事务,如回收内存,向用户进程反馈I/O事务的处理结果等。
192192

193-
驱动程序通知设备可用 ``门铃 doorbell`` 机制,即采用PIO或MMIO方式访问设备特定寄存器,QEMU进行拦截再通知其模拟的设备。设备通知驱动程序一般用中断机制,即在QEMU中进行中断注入,让CPU响应并执行中断处理例程,来完成对I/O执行结果的处理。
193+
驱动程序通知设备可用 ``门铃 doorbell`` 机制,即采用PIO(MMIO方式)访问设备特定寄存器,QEMU进行拦截再通知其模拟的设备。设备通知驱动程序一般用中断机制,即在QEMU中进行中断注入,让CPU响应并执行中断处理例程,来完成对I/O执行结果的处理。
194194

195195
**virtqueue虚拟队列**
196196

0 commit comments

Comments
 (0)