On Wed, Sep 20, 2023 at 3:02 PM Maxime Coquelin
<[email protected]> 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: [email protected]
>
> Reported-by: Sampath Peechu <[email protected]>
> Signed-off-by: Maxime Coquelin <[email protected]>

Reviewed-by: David Marchand <[email protected]>

-- 
David Marchand

Reply via email to