• Ben-Ami Yassour's avatar
    KVM: pci device assignment · 4d5c5d0f
    Ben-Ami Yassour authored
    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: default avatarAmit Shah <amit.shah@qumranet.com>
    Signed-off-by: default avatarBen-Ami Yassour <benami@il.ibm.com>
    Signed-off-by: default avatarWeidong Han <weidong.han@intel.com>
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    4d5c5d0f
kvm_host.h 20.3 KB