forked from Minki/linux
62c476c7c7
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>
23 lines
576 B
Makefile
23 lines
576 B
Makefile
#
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
#
|
|
|
|
common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
|
|
coalesced_mmio.o)
|
|
ifeq ($(CONFIG_KVM_TRACE),y)
|
|
common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
|
|
endif
|
|
|
|
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
|
|
|
|
kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
|
|
i8254.o
|
|
ifeq ($(CONFIG_DMAR),y)
|
|
kvm-objs += vtd.o
|
|
endif
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
kvm-intel-objs = vmx.o
|
|
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
|
|
kvm-amd-objs = svm.o
|
|
obj-$(CONFIG_KVM_AMD) += kvm-amd.o
|