KVM: Device Assignment with VT-d
Based on a patch by: Kay, Allen M <allen.m.kay@intel.com> This patch enables PCI device assignment based on VT-d support. When a device is assigned to the guest, the guest memory is pinned and the mapping is updated in the VT-d IOMMU. [Amit: Expose KVM_CAP_IOMMU so we can check if an IOMMU is present and also control enable/disable from userspace] Signed-off-by:Kay, Allen M <allen.m.kay@intel.com> Signed-off-by:
Weidong Han <weidong.han@intel.com> Signed-off-by:
Ben-Ami Yassour <benami@il.ibm.com> Signed-off-by:
Amit Shah <amit.shah@qumranet.com> Acked-by:
Mark Gross <mgross@linux.intel.com> Signed-off-by:
Avi Kivity <avi@qumranet.com>
Showing
- arch/x86/kvm/Makefile 3 additions, 0 deletionsarch/x86/kvm/Makefile
- arch/x86/kvm/vtd.c 198 additions, 0 deletionsarch/x86/kvm/vtd.c
- arch/x86/kvm/x86.c 14 additions, 0 deletionsarch/x86/kvm/x86.c
- include/asm-x86/kvm_host.h 3 additions, 20 deletionsinclude/asm-x86/kvm_host.h
- include/linux/kvm.h 3 additions, 0 deletionsinclude/linux/kvm.h
- include/linux/kvm_host.h 52 additions, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 8 additions, 1 deletionvirt/kvm/kvm_main.c
arch/x86/kvm/vtd.c
0 → 100644
Please register or sign in to comment