patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Kevin Traynor <ktraynor@redhat.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>, stable@dpdk.org
Cc: Sampath Peechu <speechu@cisco.com>,
	David Marchand <david.marchand@redhat.com>
Subject: Re: [PATCH v21.11.6 1/2] net/virtio: fix descriptor addresses in 32-bit build
Date: Thu, 23 Nov 2023 10:52:40 +0000	[thread overview]
Message-ID: <2a04b026-e736-4395-57a6-97e5c8c986af@redhat.com> (raw)
In-Reply-To: <20231123101131.98389-1-maxime.coquelin@redhat.com>

On 23/11/2023 10:11, Maxime Coquelin wrote:
> With Virtio-user, the Virtio descriptor buffer address is the
> virtual address of the mbuf's buffer. On 32-bit builds, it is
> expected to be 32 bits.
> 
> With Virtio-PCI, the Virtio descriptor buffer address is the
> physical address of the mbuf's buffer. On 32-bit builds running
> on 64-bit kernel, it is expected to be up to 64 bits.
> 
> This patch introduces a new mask field in virtqueue's struct to
> filter our the upper 4 bytes of the address only when necessary.
> An optimization is introduced for 64-bit builds to remove the
> masking, as the address is always 64 bits wide.
> 
> Fixes: ba55c94a7ebc ("net/virtio: revert forcing IOVA as VA mode for virtio-user")
> Cc:stable@dpdk.org
> 
> Reported-by: Sampath Peechu<speechu@cisco.com>
> Signed-off-by: Maxime Coquelin<maxime.coquelin@redhat.com>
> Reviewed-by: David Marchand<david.marchand@redhat.com>
> (cherry picked from commit 8c41645be010ec7fa0df4f6c3790b167945154b4)
> Signed-off-by: Maxime Coquelin<maxime.coquelin@redhat.com>
> ---
>   .mailmap                           |  1 +
>   drivers/net/virtio/virtio_ethdev.c |  7 +++++--
>   drivers/net/virtio/virtqueue.h     | 18 ++++++++++++++----
>   3 files changed, 20 insertions(+), 6 deletions(-)

Applied to 21.11 branch. Thanks for backporting.


      parent reply	other threads:[~2023-11-23 10:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23 10:11 Maxime Coquelin
2023-11-23 10:11 ` [PATCH v21.11.6 2/2] vhost: fix missing lock protection in power monitor API Maxime Coquelin
2023-11-23 10:52   ` Kevin Traynor
2023-11-23 10:52 ` Kevin Traynor [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=2a04b026-e736-4395-57a6-97e5c8c986af@redhat.com \
    --to=ktraynor@redhat.com \
    --cc=david.marchand@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=speechu@cisco.com \
    --cc=stable@dpdk.org \
    /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).