From: Marc Zyngier <marc.zyngier@arm.com>
To: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>,
linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
alex.williamson@redhat.com
Cc: eric.auger@redhat.com, will.deacon@arm.com
Subject: Re: [PATCH 2/2] vfio: type1: conditionally check MSI remapping at irq domain level
Date: Thu, 2 Mar 2017 10:19:54 +0000 [thread overview]
Message-ID: <7b46ae99-8800-2c90-fd72-054aef877106@arm.com> (raw)
In-Reply-To: <20170302100132.20502-2-yousaf.kaukab@suse.com>
On 02/03/17 10:01, Mian Yousaf Kaukab wrote:
> Check only if irq domains are available.
>
> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
> ---
> drivers/vfio/vfio_iommu_type1.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c
> index bd6f293c4ebd..e3ed50e40ead 100644
> --- a/drivers/vfio/vfio_iommu_type1.c
> +++ b/drivers/vfio/vfio_iommu_type1.c
> @@ -1287,8 +1287,9 @@ static int vfio_iommu_type1_attach_group(void *iommu_data,
> INIT_LIST_HEAD(&domain->group_list);
> list_add(&group->next, &domain->group_list);
>
> - msi_remap = resv_msi ? irq_domain_check_msi_remap() :
> - iommu_capable(bus, IOMMU_CAP_INTR_REMAP);
> + msi_remap = resv_msi && IS_ENABLED(CONFIG_IRQ_DOMAIN) ?
Now, that seems completely overkill in the light of your previous patch.
Why do we need this at all?
> + irq_domain_check_msi_remap() :
> + iommu_capable(bus, IOMMU_CAP_INTR_REMAP);
>
> if (!allow_unsafe_interrupts && !msi_remap) {
> pr_warn("%s: No interrupt remapping support. Use the module param \"allow_unsafe_interrupts\" to enable VFIO IOMMU support on this platform\n",
>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2017-03-02 10:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 10:01 [PATCH 1/2] irqdomain: add empty irq_domain_check_msi_remap Mian Yousaf Kaukab
2017-03-02 10:01 ` [PATCH 2/2] vfio: type1: conditionally check MSI remapping at irq domain level Mian Yousaf Kaukab
2017-03-02 10:19 ` Marc Zyngier [this message]
2017-03-02 10:24 ` Auger Eric
2017-03-02 12:38 ` Mian Yousaf Kaukab
2017-03-02 13:46 ` Auger Eric
2017-03-02 15:01 ` Mian Yousaf Kaukab
2017-03-02 10:16 ` [PATCH 1/2] irqdomain: add empty irq_domain_check_msi_remap Marc Zyngier
2017-03-02 10:29 ` Auger Eric
2017-03-02 10:24 ` Auger Eric
2017-03-02 12:23 ` Mian Yousaf Kaukab
2017-03-02 13:12 ` Auger Eric
2017-03-02 13:31 ` Mian Yousaf Kaukab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b46ae99-8800-2c90-fd72-054aef877106@arm.com \
--to=marc.zyngier@arm.com \
--cc=alex.williamson@redhat.com \
--cc=eric.auger@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=will.deacon@arm.com \
--cc=yousaf.kaukab@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®