On Wed, Sep 20, 2023 at 3:02 PM Maxime Coquelin
<maxime.coque...@redhat.com> wrote:
>
> With Virtio-user, the Virtio descriptor buffer address is the
> virtual address of the mbuf's buffer. On 32 bits 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 bits builds running
> on 64 bits 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 bits 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: sta...@dpdk.org
>
> Reported-by: Sampath Peechu <spee...@cisco.com>
> Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com>

Reviewed-by: David Marchand <david.march...@redhat.com>

-- 
David Marchand

Reply via email to