【KVM】SR-IOV PCI-hotplug VT-d技术

.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技术

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值