notes on virtio-blk driver
来源:互联网 发布:钓鱼源码 编辑:程序博客网 时间:2024/06/05 18:03
from block layer perspective
not request_fn based, blk-mq based instead., thus bypassing io scheduler. using one hw queue, so mapping all per-cpu queues into that signle hw queue. requests from generic block layer will first be put on the per-cpu queues and delay work will merge all the requests from sw queues into the hw queue and send to virtio_queue_rq to process it.
from virtio point of view
one virt queue
a small set of virtio_blk_config
out (ro) and in buffer (writable). in for read, both used for write (order - out,in)
kick doesn't mean flush, because host may still buffer it.
sync part:
submit_bio -> generic_make_request -> blk_mq_make_request -> blk_mq_run_hw_queue -> kblockd_schedule_delayed_work
delayed work:
blk_mq_work_fn -> __blk_mq_run_hw_queue -> virtio_queue_rq
0 0
- notes on virtio-blk driver
- virtio-blk原理
- virtio-blk浅析
- Virtio-blk浅析
- virtio-blk初始化
- virtio-blk请求发起
- virtio-blk简介
- kvm-loongson3的virtio-blk和virtio-net支持
- virtio的理解和guest中的virtio-blk分析
- Centos6下Virtio-SCSI(multi-queues)/Virtio-SCSI/Virtio-blk性能对比
- virtio-blk后端处理-请求接收、解析、提交
- QEMU-KVM I/O性能优化之Virtio-blk-data-plane
- QEMU-KVM I/O性能优化之Virtio-blk-data-plane
- 6.1.Virtio 原理与Guest OS driver
- VirtIO-Driver在Windows上的使用
- My Windows Driver Study Notes
- KVM虚拟化系列之virio -------virtio scsi host driver
- Notes on Nationalism
- Android 引导页的实现
- 第5周-项目3-时间类(1)
- 单链表的基本操作
- 三角形2
- bzoj4402: Claris的剑
- notes on virtio-blk driver
- 优先队列的一些使用
- 最短路径问题 HDU 3790 双权最短路
- HDU 5651xiaoxin juju needs help 带模除法逆元+有重复元素的全排列值
- hdu4031 Atack(树状数组区间更新单点求值)
- 在企业内部分发 iOS 应用程序
- Android学习:数据持久化技术(一,File & SharePreference)
- 三角形3
- Java 设计模式-适配器模式