From mboxrd@z Thu Jan 1 00:00:00 1970 From: Venkatesh Srinivas Subject: Re: [PATCH 40/41] net/virtio: use contiguous allocation for DMA memory Date: Sat, 3 Mar 2018 10:52:09 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: dev@dpdk.org, Yuanhan Liu , Maxime Coquelin , Tiwei Bie , keith.wiles@intel.com, jianfeng.tan@intel.com, andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com, benjamin.walker@intel.com, bruce.richardson@intel.com, thomas@monjalon.net, konstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, olivier.matz@6wind.com To: Anatoly Burakov Return-path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id BC5B44C8C for ; Sat, 3 Mar 2018 17:52:11 +0100 (CET) Received: by mail-wr0-f195.google.com with SMTP id f14so13069464wre.8 for ; Sat, 03 Mar 2018 08:52:11 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, Mar 3, 2018 at 7:46 AM, Anatoly Burakov wrote: > Signed-off-by: Anatoly Burakov > --- > > Notes: > Not sure if virtio needs to allocate DMA-capable memory, > being a software driver and all. Corrections welcome. Reviewed-by: Venkatesh Srinivas 1. The first change is correct - virtio rings need to be contiguous in guest physical address space. 2. The second change - virtio_tx_region contains both a virtio_net_hdr and indirect table. virtio devices require virtio_net_hdr to be contiguous (in pre-1.0 devices w/o F_ANY_LAYOUT) but do not require the indirect table to be contiguous w/ virtio_net_hdr. You may want this to avoid splitting up the structure though. HTH, -- vs;