KVM: Device Assignment with VT-d
authorBen-Ami Yassour <benami@il.ibm.com>
Sun, 14 Sep 2008 00:48:28 +0000 (03:48 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:04 +0000 (14:25 +0200)
commit62c476c7c7f25a5b245b9902a935636e6316e58c
tree6584591c7c345fcbb3c6d437203dc7f4a628573a
parent387179464257921eb9aa3d15cc3ff194f6945a7c
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>
arch/x86/kvm/Makefile
arch/x86/kvm/vtd.c [new file with mode: 0644]
arch/x86/kvm/x86.c
include/asm-x86/kvm_host.h
include/linux/kvm.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c