[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <535E1BB4.2070904@redhat.com>
Date: Mon, 28 Apr 2014 11:13:24 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Alexander Gordeev <agordeev@...hat.com>
CC: linux-kernel@...r.kernel.org, Gleb Natapov <gleb@...nel.org>,
kvm@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH v2] kvm: Use pci_enable_msix_exact() instead of pci_enable_msix()
Il 21/02/2014 18:05, Alexander Gordeev ha scritto:
> 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() or pci_enable_msi_exact()
> and pci_enable_msix_range() or pci_enable_msix_exact()
> interfaces.
>
> Signed-off-by: Alexander Gordeev <agordeev@...hat.com>
> Cc: Gleb Natapov <gleb@...nel.org>
> Cc: Paolo Bonzini <pbonzini@...hat.com>
> Cc: kvm@...r.kernel.org
> Cc: linux-pci@...r.kernel.org
> ---
> virt/kvm/assigned-dev.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c
> index 8db4370..bf06577 100644
> --- a/virt/kvm/assigned-dev.c
> +++ b/virt/kvm/assigned-dev.c
> @@ -395,7 +395,8 @@ 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);
> + r = pci_enable_msix_exact(dev->dev,
> + dev->host_msix_entries, dev->entries_nr);
> if (r)
> return r;
>
>
Applying this to kvm/master (i.e. for 3.15), thanks.
Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists