mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
ec53500fae
So far we've succeeded at making KVM and VFIO mostly unaware of each other, but areas are cropping up where a connection beyond eventfds and irqfds needs to be made. This patch introduces a KVM-VFIO device that is meant to be a gateway for such interaction. The user creates the device and can add and remove VFIO groups to it via file descriptors. When a group is added, KVM verifies the group is valid and gets a reference to it via the VFIO external user interface. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
24 lines
629 B
Makefile
24 lines
629 B
Makefile
|
|
ccflags-y += -Ivirt/kvm -Iarch/x86/kvm
|
|
|
|
CFLAGS_x86.o := -I.
|
|
CFLAGS_svm.o := -I.
|
|
CFLAGS_vmx.o := -I.
|
|
|
|
KVM := ../../../virt/kvm
|
|
|
|
kvm-y += $(KVM)/kvm_main.o $(KVM)/ioapic.o \
|
|
$(KVM)/coalesced_mmio.o $(KVM)/irq_comm.o \
|
|
$(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o
|
|
kvm-$(CONFIG_KVM_DEVICE_ASSIGNMENT) += $(KVM)/assigned-dev.o $(KVM)/iommu.o
|
|
kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o
|
|
|
|
kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
|
|
i8254.o cpuid.o pmu.o
|
|
kvm-intel-y += vmx.o
|
|
kvm-amd-y += svm.o
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
|
|
obj-$(CONFIG_KVM_AMD) += kvm-amd.o
|