Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp462201ybz; Wed, 29 Apr 2020 03:31:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLNXXxJ9uHP7GC0ZrZy8xNgS7lrRlX6p12LXZmh6XsJIOoB6+WIVBHASsXu36HO96nA6QvA X-Received: by 2002:a05:6402:1a46:: with SMTP id bf6mr1723021edb.44.1588156288150; Wed, 29 Apr 2020 03:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588156288; cv=none; d=google.com; s=arc-20160816; b=S+bWMFLoNp7WU8AqI4ACSj1zfZZO6El716BIzj+w4QWIY4EyJIS6Y0NGoOz580/ff3 T+2gqkcarMZX7uDazZk0icRzu8P2DMiVplkOkZ4OLIm+CCNHoI4BjF6nE8z6CWcDpsWn hBY4DNTWCyvacReXfuWjJjg+8bj2iLEslp/0cb7ojXjBd+6k9QG6Y/cIpYuAKmAo9EAr J4QuKu16/c1tAf+BvkpEb7zkbNFwxQ2hBHtLEICGxDfi4QeryzcsiDAHSdNNSG4GwC39 uzoTKXESUtUKiLpewWPfnHWMlD0jQKHxgfdarB1wVNs/yMG3aI+HIMDA/rcBsGcEAif5 Ykrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Lw47lR98GijGHrXSvOzDGq/PHVY7ARZThRf6xyqU1Aw=; b=I42Tvw76yatkiJ/iQKjv0KMQfq3jZFESsY6nzLzh8XzegQPZ7g1Xc7btQHt1EdM78k Jg/9EQRWMfYHGscPG4x3HjFIBHrDp+F6tGnkFdpwPcysDpzBM7FPBF1bgjLnVJCEVaQ0 X43KLQ9TS5scdmRA4vgXmYY2dEF5NRax2PV6dshnBJbUIoYy6aEc7qxtwEn6NatZSR79 DMYdVCHGpf8DPLeGJK+Rih0/7Di6egnoS9LdLOXSNYU0lpQoQs1cmkZ+FeJ28C7p7Fio XVt07VkUHQsV0d5EeRzcDo5utuAD0g4h1kjHLCUqILGpx9q46P3fXBo5Eh48RPu77MaI CpaQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si870008edf.40.2020.04.29.03.31.04; Wed, 29 Apr 2020 03:31:28 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726886AbgD2K1J (ORCPT + 99 others); Wed, 29 Apr 2020 06:27:09 -0400 Received: from thoth.sbs.de ([192.35.17.2]:57589 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgD2K1J (ORCPT ); Wed, 29 Apr 2020 06:27:09 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 03TAQj04018005 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Apr 2020 12:26:45 +0200 Received: from [167.87.241.229] ([167.87.241.229]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 03TAQh4p015274; Wed, 29 Apr 2020 12:26:43 +0200 Subject: Re: [PATCH 5/5] virtio: Add bounce DMA ops To: "Michael S. Tsirkin" , Srivatsa Vaddagiri Cc: Lu Baolu , tsoni@codeaurora.org, virtio-dev@lists.oasis-open.org, konrad.wilk@oracle.com, jasowang@redhat.com, christoffer.dall@arm.com, virtualization@lists.linux-foundation.org, alex.bennee@linaro.org, iommu@lists.linux-foundation.org, stefano.stabellini@xilinx.com, will@kernel.org, linux-kernel@vger.kernel.org, pratikp@codeaurora.org References: <20200428121232-mutt-send-email-mst@kernel.org> <20200428174952.GA5097@quicinc.com> <20200428163448-mutt-send-email-mst@kernel.org> <275eba4b-dd35-aa95-b2e3-9c5cbf7c6d71@linux.intel.com> <20200429004531-mutt-send-email-mst@kernel.org> <20200429023842-mutt-send-email-mst@kernel.org> <20200429094410.GD5097@quicinc.com> <20200429055125-mutt-send-email-mst@kernel.org> <20200429100953.GE5097@quicinc.com> <20200429061621-mutt-send-email-mst@kernel.org> From: Jan Kiszka Message-ID: Date: Wed, 29 Apr 2020 12:26:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200429061621-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.04.20 12:20, Michael S. Tsirkin wrote: > On Wed, Apr 29, 2020 at 03:39:53PM +0530, Srivatsa Vaddagiri wrote: >> That would still not work I think where swiotlb is used for pass-thr devices >> (when private memory is fine) as well as virtio devices (when shared memory is >> required). > > So that is a separate question. When there are multiple untrusted > devices, at the moment it looks like a single bounce buffer is used. > > Which to me seems like a security problem, I think we should protect > untrusted devices from each other. > Definitely. That's the model we have for ivshmem-virtio as well. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux