Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp310869pxb; Tue, 9 Feb 2021 00:31:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOa/nsfrOhStDO3EOqs8ulhwAB2qPhjFh4+nKSR4CNJLOfUiQE8tZeQsus2WkJxZtwYDZM X-Received: by 2002:a17:906:5e59:: with SMTP id b25mr21257534eju.536.1612859464768; Tue, 09 Feb 2021 00:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612859464; cv=none; d=google.com; s=arc-20160816; b=arpM0QEpAiBerIC1wGaeMhqAyu9ww9QufLv/G6tvfZd8D0rL5PDxUXRz7ONkGIc21f rY98ECgVzGC9l7f7S1lUWE0yEA78nqxZ1hMJPR50IvKm2L6sjogvUJkp/8894Oy29s0y yin+RvIHJPh/fFXfgBpa6qJ7iXImdmnCaQGoO3NysrKWsVxfSZ8kbed+7ddlcooVcROK jhr7lzYq1oHFO4HA1UHpFojhg7XVZgoVWOPRFU4GCdMi9c7n/MWTKuGFJBuZuEU/vsu9 vNwlBRem7XAHLdEfpvKBFtBHl74+xSbTQ0jhmkpwWkAoVfp3NtrzlA3kt4r0vHIBmZV0 9A7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=29Ei+qSeBQfnRNeqyF++1pVHz8aUuziNEnkCcJqmdoE=; b=ugrj4CFtFwTlaAkR3uQoK4q3NMQt+g7vK/AWEfC4Au55xGBfsjcEqZhfG4GwFCkVOC kwhASoNGcN14X7UCcgUAz9+uVGaGBIC1FCCKFH3rjNzkR4IyeLkXDGeEoFEg5Mghke1X mwIUT/0364pWC45qh4y0z0Emj+AxtfuYl4/ApTcENuje1IUZAvIR9ThD8jYm5iHpqO8I WUcr6zXWiqIuJsTU4btWpfqv3NoMB04wM9jGjGdmlsukw0Rhl0M/Bvh4Mk1FDT163TCS 5NVFSeJVxtE5cHKhJu9DUA9mQ1RI3Dt9FVJge5JI9fMw64f5QOOlhC7JJHD52Zr1BTNO DYrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si13672380ejd.722.2021.02.09.00.30.40; Tue, 09 Feb 2021 00:31:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbhBII1W (ORCPT + 99 others); Tue, 9 Feb 2021 03:27:22 -0500 Received: from verein.lst.de ([213.95.11.211]:45420 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbhBII1I (ORCPT ); Tue, 9 Feb 2021 03:27:08 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 313FB67373; Tue, 9 Feb 2021 09:26:24 +0100 (CET) Date: Tue, 9 Feb 2021 09:26:23 +0100 From: Christoph Hellwig To: Konrad Rzeszutek Wilk Cc: Christoph Hellwig , Martin Radev , m.szyprowski@samsung.com, robin.murphy@arm.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, joro@8bytes.org, kirill.shutemov@linux.intel.com, thomas.lendacky@amd.com, robert.buhren@sect.tu-berlin.de, file@sect.tu-berlin.de, mathias.morbitzer@aisec.fraunhofer.de, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org Subject: Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path Message-ID: <20210209082623.GA31955@lst.de> References: <20210113113017.GA28106@lst.de> <20210203124922.GB16923@lst.de> <20210203193638.GA325136@fedora> <20210205175852.GA1021@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 12:14:49PM -0500, Konrad Rzeszutek Wilk wrote: > > ring buffer or whatever because you know I/O will be copied anyway > > and none of all the hard work higher layers do to make the I/O suitable > > for a normal device apply. > > I lost you here. Sorry, are you saying have a simple ring protocol > (like NVME has), where the ring entries (SG or DMA phys) are statically > allocated and whenever NVME driver gets data from user-space it > would copy it in there? Yes. Basically extend the virtio or NVMe ring/queue concept to not just cover commands and completions, but also the data transfers.