diff options
Diffstat (limited to 'vmci.patch')
-rw-r--r-- | vmci.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vmci.patch b/vmci.patch index baca38b4ccc9..c5ebf9d92074 100644 --- a/vmci.patch +++ b/vmci.patch @@ -74,6 +74,26 @@ index f676166..9e42f3f 100644 data_buffer = NULL; return retval; } +@@ -1722,11 +1733,19 @@ + vmci_dev.msix_entries[i].vector = i; + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) + result = pci_enable_msix(pdev, vmci_dev.msix_entries, VMCI_MAX_INTRS); ++#else ++ result = pci_enable_msix_range(pdev, vmci_dev.msix_entries, VMCI_MAX_INTRS, VMCI_MAX_INTRS); ++#endif + if (!result) { + vmci_dev.exclusive_vectors = TRUE; + } else if (result > 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) + result = pci_enable_msix(pdev, vmci_dev.msix_entries, 1); ++#else ++ result = pci_enable_msix_range(pdev, vmci_dev.msix_entries, 1, 1); ++#endif + } + return result; + } @@ -2473,7 +2485,11 @@ vmci_exit(void) if (guestDeviceInit) { |