Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp474663ybz; Wed, 29 Apr 2020 03:47:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLe5ChWf14MZ67Jb6hLa8/wHGWDhJSUMgXBnPVnLzZ6n9RkBpeZFQelU3oZ89aoKeorudCc X-Received: by 2002:a05:6402:a43:: with SMTP id bt3mr1733046edb.157.1588157225504; Wed, 29 Apr 2020 03:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588157225; cv=none; d=google.com; s=arc-20160816; b=g5AStsc7ADChRNPXjugPKLkIG+g0DVzyzrhEmhaEDM3Y2F8MKku8VZ1xJ+yxavTHpr YpMuL5CPCxsVPOV5lg489de97a/hsJ9SWzLfBXC398KWfWEVmX2V2Q3VJDLCWpmB2kW3 Q9Y+qGZDY7775OfetUypiPZ2RgRmazmgVoTZzOtdnn0vEAq3bWcxJM3VfOB/9yVCVFSg rGh1+wD2RAvOrU3yn4OoUroc2dAFsvNuQAfXdMF9PLXADJLXtOfSSyWMT8pJVCt5Bmeh EfIVYMda7pTz0DgeHS6FLel0UmueujFp1v81NomN7ztUlpPNiKB4Zs+2rQ34bdha1P9l 0Eqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ivrbfu7nXm6urIi13dgUtl5GkaF/JA7ff8SBWPZh/VU=; b=XP0AO5JuRAUdZBCeY7RW5DnlMDjdA+ysykygaMmJWRDU7BRtJYqzzjqmEJQ/zkDgad gPP6Gj0p4ATYGgKifZ5Jxgo6WQh7dY+poD1ks1+GvuY2qDoV0eXAAI+guUwBBWOv8HoW hcv+nYf7yh+fEWR3w/4OQstqlS10gB25J2uX9cbVIM+QpSXu5zhbLGhle5R8y7a5+Xwz RmlomXOspEmjxixvKIMIsDvwPC3JcXsSDYk9rFm0mOqeuKty4u9bhq4d0nBXMM4WiHly RQhcX8nYQHeGJNZ17rFX3HaOOXnYeAD+RUJYsGqD/XtQhYlGn4zekAKRi+2pUm28PbnJ EbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CbULZWEb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si3285149ejt.110.2020.04.29.03.46.41; Wed, 29 Apr 2020 03:47:05 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CbULZWEb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgD2KpS (ORCPT + 99 others); Wed, 29 Apr 2020 06:45:18 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:24838 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726523AbgD2KpS (ORCPT ); Wed, 29 Apr 2020 06:45:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588157116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ivrbfu7nXm6urIi13dgUtl5GkaF/JA7ff8SBWPZh/VU=; b=CbULZWEbZAKH9bV+G8IywQ2Nrlwm0X/us8Vph1uNAI+3tt4/n+Sc6HBfYjMWUDJ03wY8cQ yWCbaONHY5XfUXnQUFlm4DEYH2dqlura8NS7Vc/uxjUS3J8mRoRu0Tx4gWoehtm3sJXwKr qMAZZvstaD885/aEtu4ULUo1M/NRAJ4= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-98v2esonMKOv-L-uhbnRpw-1; Wed, 29 Apr 2020 06:45:15 -0400 X-MC-Unique: 98v2esonMKOv-L-uhbnRpw-1 Received: by mail-wr1-f72.google.com with SMTP id v9so1515908wrt.7 for ; Wed, 29 Apr 2020 03:45:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ivrbfu7nXm6urIi13dgUtl5GkaF/JA7ff8SBWPZh/VU=; b=DC284IhM2xZq8Sw+CPzVOh33tNm2RBkGOtx7enzo3YsysHuN7bX8UGI2RaaU95GHMq CxGv/adINnAUkBgoM9fMo225M8E0zFGcDy/Nb8dFD0K2IoJ24tJ36u0VIH2Ht2JpH8+x BsE3K+rxY/lxfBDd5VyaZEly8peMrC5M2S+Y3h4opRM4KTdB00ksIcZ59b80t0F7LfJ7 5yHlaX2spoTLkqMjbnrC/qKLkVGqKfupgy1ar/B4yrE2Lb5qNplpl/OnnlKku9A9TEWz IsGEiZPDxyw4MgrKRsOOdPRz9dK9N3a6/M5+2QKlhGsOQyQFp6pZEZ+K7BfDLJpyee2x Wy9Q== X-Gm-Message-State: AGi0PuZxPE25Gn7/KDLhINgHR2W495SOWwRJoLB7+HIRoN54MBHoFtS2 9Des06Wjrxf1gnURg/iHaHTqFInoJO+bXC6OGqSt3P3735ytmjmuUN5Lu/T55X3WAaHJCoTuADx tsWMFlffynUfhZCW4F83N90Md X-Received: by 2002:a1c:770f:: with SMTP id t15mr2494528wmi.178.1588157114025; Wed, 29 Apr 2020 03:45:14 -0700 (PDT) X-Received: by 2002:a1c:770f:: with SMTP id t15mr2494510wmi.178.1588157113807; Wed, 29 Apr 2020 03:45:13 -0700 (PDT) Received: from redhat.com (bzq-109-66-7-121.red.bezeqint.net. [109.66.7.121]) by smtp.gmail.com with ESMTPSA id y70sm7706812wmc.36.2020.04.29.03.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 03:45:13 -0700 (PDT) Date: Wed, 29 Apr 2020 06:45:10 -0400 From: "Michael S. Tsirkin" To: Jan Kiszka Cc: Srivatsa Vaddagiri , 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 Subject: Re: [PATCH 5/5] virtio: Add bounce DMA ops Message-ID: <20200429064458-mutt-send-email-mst@kernel.org> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 12:26:43PM +0200, Jan Kiszka wrote: > 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 Want to try implementing that? > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux