android_kernel_xiaomi_sm8350/arch/x86/kvm
Ben-Ami Yassour 4d5c5d0fe8 KVM: pci device assignment
Based on a patch from: Amit Shah <amit.shah@qumranet.com>

This patch adds support for handling PCI devices that are assigned to
the guest.

The device to be assigned to the guest is registered in the host kernel
and interrupt delivery is handled.  If a device is already assigned, or
the device driver for it is still loaded on the host, the device
assignment is failed by conveying a -EBUSY reply to the userspace.

Devices that share their interrupt line are not supported at the moment.

By itself, this patch will not make devices work within the guest.
The VT-d extension is required to enable the device to perform DMA.
Another alternative is PVDMA.

Signed-off-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Ben-Ami Yassour <benami@il.ibm.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-10-15 10:15:18 +02:00
..
i8254.c KVM: PIT: fix injection logic and count 2008-10-15 10:15:17 +02:00
i8254.h KVM: PIT: fix injection logic and count 2008-10-15 10:15:17 +02:00
i8259.c KVM: irq ack notification 2008-10-15 10:15:16 +02:00
irq.c KVM: PIT: fix injection logic and count 2008-10-15 10:15:17 +02:00
irq.h KVM: irq ack notification 2008-10-15 10:15:16 +02:00
Kconfig mmu-notifiers: core 2008-07-28 16:30:21 -07:00
kvm_cache_regs.h KVM: x86: accessors for guest registers 2008-10-15 10:13:57 +02:00
kvm_svm.h
lapic.c KVM: irq ack notification 2008-10-15 10:15:16 +02:00
lapic.h KVM: add statics were possible, function definition in lapic.h 2008-07-20 12:40:46 +03:00
Makefile KVM: Add coalesced MMIO support (x86 part) 2008-07-20 12:42:31 +03:00
mmu.c KVM: MMU: Simplify kvm_mmu_zap_page() 2008-10-15 10:15:12 +02:00
mmu.h KVM: MMU: Fix false flooding when a pte points to page table 2008-07-20 12:40:50 +03:00
paging_tmpl.h KVM: MMU: Fix torn shadow pte 2008-08-25 17:24:27 +03:00
svm.c KVM: SVM: Unify register save/restore across 32 and 64 bit hosts 2008-10-15 10:15:14 +02:00
svm.h
tss.h
vmx.c KVM: VMX: Avoid vmwrite(HOST_RSP) when possible 2008-10-15 10:15:15 +02:00
vmx.h KVM: VMX: Rename misnamed msr bits 2008-10-15 10:13:57 +02:00
x86_emulate.c KVM: x86: accessors for guest registers 2008-10-15 10:13:57 +02:00
x86.c KVM: pci device assignment 2008-10-15 10:15:18 +02:00
x86.h KVM: Add a pending interrupt queue 2008-10-15 10:15:13 +02:00