2020年9月24日

摘要: The VFIO driver is a framework for exposing direct device access to userspace. Virtual machine technology uses VFIO to assign physical device to VMs f 阅读全文
posted @ 2020-09-24 15:43 tycoon3 阅读(476) 评论(0) 推荐(0)
摘要: https://www.codeleading.com/article/67454397455/ https://blog.csdn.net/weixin_43503508/article/details/107924027 static const struct dma_map_ops iommu 阅读全文
posted @ 2020-09-24 15:04 tycoon3 阅读(2148) 评论(0) 推荐(0)
摘要: 话说,盘古开天的时候,设备访问内存(DMA)就只接受物理地址,所以CPU要把一个地址告诉设备,就只能给物理地址。但设备的地址长度还比CPU的总线长度短,所以只能分配低地址来给设备用。所以CPU这边的接口就只有dma=dma_alloc(dev, size),分配了物理地址,然后映射为内核的va,然后 阅读全文
posted @ 2020-09-24 14:41 tycoon3 阅读(2483) 评论(0) 推荐(0)
摘要: 转载 吴斌的博客 » 【firecracker】时钟与中断 firecracker虚拟机的时钟与中断系统完全是由KVM模块和硬件实现的,这里仅简要说明其原理,更深入的分析需要结合KVM代码和内核代码进行。 时钟系统原理 时钟系统包含时间源和时钟事件源两部分: 时间源类似生活中的手表,系统通过它可以获 阅读全文
posted @ 2020-09-24 10:54 tycoon3 阅读(471) 评论(0) 推荐(0)
摘要: https://habr.com/ru/post/446312/ This article is about the interrupt delivery process from external devices in the x86 system. It tries to answer ques 阅读全文
posted @ 2020-09-24 10:48 tycoon3 阅读(1819) 评论(0) 推荐(0)
摘要: root@srv6:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 0 0 0 0 0 0 9 0 IO-APIC 1-edge i8042 4: 442 0 0 0 319 0 0 0 IO-APIC 4-edg 阅读全文
posted @ 2020-09-24 10:41 tycoon3 阅读(1161) 评论(0) 推荐(0)
摘要: 首先是内核中断的分类,这里只是根据proc/interrupts下显示的中断进行分类,主要包含外部中断和IPI中断 cat proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 107049 104452 77919 106593 17 阅读全文
posted @ 2020-09-24 10:30 tycoon3 阅读(1090) 评论(0) 推荐(0)

导航