All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Thomas Monjalon <thomas@monjalon.net>, chaozhu@linux.vnet.ibm.com
Cc: dev@dpdk.org, Takeshi Yoshimura <tyos@jp.ibm.com>,
	Takeshi Yoshimura <t.yoshimura8869@gmail.com>
Subject: Re: [PATCH] eal/vfio: fix sPAPR IOMMU mapping
Date: Tue, 7 Aug 2018 09:39:36 +0100	[thread overview]
Message-ID: <38b342bb-3f41-7912-83d5-a9f207032cd2@intel.com> (raw)
In-Reply-To: <4068541.lKVHRX04u0@xps>

On 06-Aug-18 10:50 AM, Thomas Monjalon wrote:
> 06/08/2018 10:43, Takeshi Yoshimura:
>> Commit 73a639085938 ("vfio: allow to map other memory regions")
>> introduced a bug in sPAPR IOMMU mapping. The commit removed necessary
>> ioctl with VFIO_IOMMU_SPAPR_REGISTER_MEMORY. Also, vfio_spapr_map_walk
>> should call vfio_spapr_dma_do_map instead of vfio_spapr_dma_mem_map.
> 
> This is fixing an old patch:
> 	http://git.dpdk.org/dpdk/commit/?id=73a639085938
> 
>> Fixes: 73a639085938 ("vfio: allow to map other memory regions")
> 
> You probably want it to be backported in previous release,
> so you need to add Cc: stable@dpdk.org
> 
>> Signed-off-by: Takeshi Yoshimura <tyos@jp.ibm.com>
> 
> It is common to have bugs in sPAPR implementation.
> How can we be sure this one is OK?
> Should it be added in last minute of 18.08?
> Or can it wait 18.11?
> 
> Adding Anatoly and Chao who are maintainers to decide.
> 

The patch appears to be correct - we did have a 
VFIO_IOMMU_SPAPR_REGISTER_MEMORY ioctl in the old map() function, but 
not in the new one.

However, i agree with Thomas - without more testing from other sPAPR 
users/IBM, i would be hesitant to allow it in at the last minute. In any 
case, this code has been there for a while and no one has reported any 
issues - so this can probably wait until 18.11, seeing how this codepath 
is so popular :)

-- 
Thanks,
Anatoly

  parent reply	other threads:[~2018-08-07  8:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06  8:43 [PATCH] eal/vfio: fix sPAPR IOMMU mapping Takeshi Yoshimura
2018-08-06  9:50 ` Thomas Monjalon
2018-08-07  2:28   ` Takeshi T Yoshimura
2018-08-07  8:39   ` Burakov, Anatoly [this message]
2018-08-07  2:32 ` Takeshi Yoshimura
2018-08-07  2:35   ` [PATCH v2] " Takeshi Yoshimura
2018-10-28 21:21     ` Thomas Monjalon

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=38b342bb-3f41-7912-83d5-a9f207032cd2@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=chaozhu@linux.vnet.ibm.com \
    --cc=dev@dpdk.org \
    --cc=t.yoshimura8869@gmail.com \
    --cc=thomas@monjalon.net \
    --cc=tyos@jp.ibm.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 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.