All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: Use pci_enable_msix_range() instead of pci_enable_msix()
@ 2014-02-19 10:15 Alexander Gordeev
  2014-02-19 13:24 ` Paolo Bonzini
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Gordeev @ 2014-02-19 10:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Alexander Gordeev, Gleb Natapov, Paolo Bonzini, kvm, linux-pci

As result of deprecation of MSI-X/MSI enablement functions
pci_enable_msix() and pci_enable_msi_block() all drivers
using these two interfaces need to be updated to use the
new pci_enable_msi_range() and pci_enable_msix_range()
interfaces.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: linux-pci@vger.kernel.org
---
 virt/kvm/assigned-dev.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c
index 8db4370..92e25e9 100644
--- a/virt/kvm/assigned-dev.c
+++ b/virt/kvm/assigned-dev.c
@@ -395,8 +395,9 @@ static int assigned_device_enable_host_msix(struct kvm *kvm,
 	if (dev->entries_nr == 0)
 		return r;
 
-	r = pci_enable_msix(dev->dev, dev->host_msix_entries, dev->entries_nr);
-	if (r)
+	r = pci_enable_msix_range(dev->dev, dev->host_msix_entries,
+				  dev->entries_nr, dev->entries_nr);
+	if (r < 0)
 		return r;
 
 	for (i = 0; i < dev->entries_nr; i++) {
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-04-28  9:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 10:15 [PATCH] kvm: Use pci_enable_msix_range() instead of pci_enable_msix() Alexander Gordeev
2014-02-19 13:24 ` Paolo Bonzini
2014-02-21 17:04   ` Alexander Gordeev
2014-02-21 17:05     ` [PATCH v2] kvm: Use pci_enable_msix_exact() " Alexander Gordeev
2014-02-21 17:11       ` Paolo Bonzini
2014-02-21 18:56         ` Alexander Gordeev
2014-02-21 21:36           ` Paolo Bonzini
2014-02-22  8:50             ` Alexander Gordeev
2014-02-22  8:58               ` Paolo Bonzini
2014-04-21 13:38                 ` Alexander Gordeev
2014-04-24 20:45                   ` Paolo Bonzini
2014-04-28  9:13       ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.