Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1228368
  • 博文数量: 389
  • 博客积分: 2874
  • 博客等级: 少校
  • 技术积分: 3577
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-24 10:34
文章分类

全部博文(389)

文章存档

2020年(2)

2018年(39)

2017年(27)

2016年(3)

2015年(55)

2014年(92)

2013年(54)

2012年(53)

2011年(64)

分类: LINUX

2014-09-25 17:27:16

原文地址:SR-IOV PCI-hotplug VT-d技术 作者:galaren77

.VT-d技术
  
把一个设备直接分配给某个虚拟机使用。
  
VT-d ’s Role

* I/O device assignment: flexibility to assignment, isolation and protection to the device access.
 
* DMA remapping: independent address translations for different devices assigned.

* Interrupt remapping: isolation and routing of interrupts from devices assigned.
PCI
设备 --> I/O APIC or PIC --> PCI总线 --> CPU内的Local APIC接收中断
              --> VMM
响应中断请求,调用自己的处理函数 --调用--> 虚拟I/O APIC
              --
调用--> 虚拟Local APIC --> 中断注入
* Reliability: error log before corrupt operation to VMs.

.SR-IOV技术

An SR-IOV-capable device can be configured (usually by the VMM) to appear in the PCI configuration space as multiple functions, each with its own configuration space complete with Base Address Registers (BARs).

1.
ACPIMCFG sub-table中有PCI配置空间的基地址。
 
多个设备的PCI配置空间是连续的。
 
该配置空间内的信息由可能是BIOS提供的,也有可能是Linux扫描设备后填充的。


2.
每个PCI-e配置空间有多个Capability,一个Capability代表一个功能。SRIOV就是一个Capability


3.
SRIOVCapability里,有VF的个数。VFBar的基地址,和Size
 
根据基地址和Size可以找到每个VFMMIO的地址。
  ==
VFPF共享配置空间,但VF有自己单独的Bar地址。


.PCI-hotplug技术

阅读(1176) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~