DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Adrian Moreno <amorenoz@redhat.com>, dev@dpdk.org
Cc: Tiwei Bie <tiwei.bie@intel.com>,
	Zhihong Wang <zhihong.wang@intel.com>,
	stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] vhost: protect log addr translation in iotlb updates
Date: Thu, 13 Feb 2020 17:27:07 +0100	[thread overview]
Message-ID: <c8c49fc4-1b65-9c09-bba7-fae90e0e4725@redhat.com> (raw)
In-Reply-To: <054479bf-194f-e2d2-6765-9f3dbfd9306c@redhat.com>



On 2/13/20 5:18 PM, Maxime Coquelin wrote:
> 
> 
> On 2/13/20 11:04 AM, Adrian Moreno wrote:
>> Currently, the log address translation only  happens in the vhost-user's
>> translate_ring_addresses(). However, the IOTLB update handler is not
>> checking if it was mapped to re-trigger that translation.
>>
>> Since the log address mapping could fail, check it on iotlb updates.
>> Also, check it on vring_translate() so we do not dirty pages if the
>> logging address is not yet ready.
>>
>> Additionally, properly protect the accesses to the iotlb structures.
>>
>> Fixes: 657414f3788a ("vhost: protect log addr translation in iotlb updates")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
>> ---
>>  lib/librte_vhost/vhost.c      | 55 +++++++++++++++++++++++++++++++++
>>  lib/librte_vhost/vhost.h      | 15 +++++++--
>>  lib/librte_vhost/vhost_user.c | 57 +++++++++++++++--------------------
>>  3 files changed, 92 insertions(+), 35 deletions(-)
>>
> 
> 
> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> 
> I will fix the fixline while applying.

Applied to dpdk-next-virtio/master

Thanks,
Maxime


      reply	other threads:[~2020-02-13 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13 10:04 Adrian Moreno
2020-02-13 11:09 ` Kevin Traynor
2020-02-13 11:25   ` Adrian Moreno
2020-02-13 16:18 ` Maxime Coquelin
2020-02-13 16:27   ` Maxime Coquelin [this message]

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=c8c49fc4-1b65-9c09-bba7-fae90e0e4725@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=amorenoz@redhat.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    --cc=tiwei.bie@intel.com \
    --cc=zhihong.wang@intel.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;
as well as URLs for NNTP newsgroup(s).