• Sheng Yang's avatar
    KVM: Enable MSI for device assignment · 6b9cc7fd
    Sheng Yang authored
    We enable guest MSI and host MSI support in this patch. The userspace want to
    enable MSI should set KVM_DEV_IRQ_ASSIGN_ENABLE_MSI in the assigned_irq's flag.
    Function would return -ENOTTY if can't enable MSI, userspace shouldn't set MSI
    Enable bit when KVM_ASSIGN_IRQ return -ENOTTY with
    KVM_DEV_IRQ_ASSIGN_ENABLE_MSI.
    
    Userspace can tell the support of MSI device from #ifdef KVM_CAP_DEVICE_MSI.
    Signed-off-by: default avatarSheng Yang <sheng@linux.intel.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    6b9cc7fd
kvm_main.c 49.5 KB