From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 398EF3A1B4; Thu, 1 Feb 2024 03:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706757591; cv=none; b=BIz3WqkG0jMvGGAzCTtFjvzfz6+TxdSWRUCTE67ZVN1oqJbdJv6f0XIAHR5fOesLtkit3c8iUwRIAAr3RRPPl2eXaXS/LECuzYROjWnniiEr49yBTw0pmT9ZFH8/i1cJLWqv9hUCCYjp6t5fDi83j/yET2JQn3j5ELvZwj5JP9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706757591; c=relaxed/simple; bh=PLhFLSirN3zIM/Dl1SY9Z1UcGt6Zg3JBMDy6mgyyODA=; h=Message-ID:Subject:Date:From:To:Cc:References:In-Reply-To: Content-Type; b=FyRM9deB/mxF9s/UD/nK9FthlkXGJKSSapx/As5dRbOlq/yX2NL2tgqkSfycm9NRs7aqu/9fc9QuhxlSSi1UM2vyOQRHUGssFp0+56a/7xGqfEfp9XsWBTn/JfquPNd5qbpWKSuWa6viGx6wPnH/pKl1XA3IL6PA8XY8ZqwjsQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=bO+msRE7; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="bO+msRE7" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1706757585; h=Message-ID:Subject:Date:From:To:Content-Type; bh=PLhFLSirN3zIM/Dl1SY9Z1UcGt6Zg3JBMDy6mgyyODA=; b=bO+msRE7cnGpsoweN6yZmJdWuWiosg+E1bUhQFlSV4rCF9PnuhHdr6w+pkZ1qpx2SVhqWcPuuzEFpQWbHr8jyvstZR9JZB8P8IzyRcHVpc+wrD7hg/x8Df1e+gR05YMvSC2WEg9wS9ZvAm0uQN5omuCN4Os2xEJ9GXIDvJ4fi+Q= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=36;SR=0;TI=SMTPD_---0W.mW7Yb_1706757582; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0W.mW7Yb_1706757582) by smtp.aliyun-inc.com; Thu, 01 Feb 2024 11:19:43 +0800 Message-ID: <1706757435.040749-1-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue Date: Thu, 1 Feb 2024 11:17:15 +0800 From: Xuan Zhuo To: Jason Wang Cc: virtualization@lists.linux.dev, Richard Weinberger , Anton Ivanov , Johannes Berg , "Michael S. Tsirkin" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Vadim Pasternak , Bjorn Andersson , Mathieu Poirier , Cornelia Huck , Halil Pasic , Eric Farman , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Benjamin Berg , Yang Li , linux-um@lists.infradead.org, netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, bpf@vger.kernel.org References: <20240130114224.86536-1-xuanzhuo@linux.alibaba.com> <20240130114224.86536-12-xuanzhuo@linux.alibaba.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: On Wed, 31 Jan 2024 17:12:43 +0800, Jason Wang wrote: > On Tue, Jan 30, 2024 at 7:43=E2=80=AFPM Xuan Zhuo wrote: > > > > Export the premapped to drivers, then drivers can check > > the vq premapped mode after the find_vqs(). >=20 > This looks odd, it's the charge of the driver to set premapped, so it > should know it? If the use_dma_api is false, we can not enable the premapped mode. Though we wrapped dma apis, but the AF_XDP use the default dma api directly. As we discussed, we just work in premapped mode when the use_dma_api is tru= e. Thanks. >=20 > Thanks >=20