Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2452124ybl; Sun, 11 Aug 2019 01:56:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU9wmq2ZpqDLE+vyP94ro03lbGo/QG5nA4Iwqhhp/jXT0tRcxNgHFIc5yuAg92c6zIB6yH X-Received: by 2002:a62:2d3:: with SMTP id 202mr30923870pfc.131.1565513782944; Sun, 11 Aug 2019 01:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565513782; cv=none; d=google.com; s=arc-20160816; b=PhCqP4b8n9E/h1Q590jABLSbWPmeT2NFdKu2hjQp3eAO08zwoPwNBsw20hJDKmEg2W o6SR1nAADNXFpF0GAW35p4mE1JIv+Debm0O45Uxw1OXTsh1MT+B+U0Uu4F2WdETleJCy z5rk43ur728n2sZU9pnBce/qT0/WiO2xbCfLBTvXU2chZADFfvPUrD0NidoCRO24ZqnT mqZYGSU9MvFLqFXvz6M6oAAUEkQG3x5Hv+MwxMirX+cSQ21aQNYBK4RvghRTjEN6cRno 9ijAib5VEm9Bpi1ik8wBfmVYmuTCNm0Qto6E2lez5lNU8LQd+SbwMRjsYHnEjJElgbjn J67A== 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; bh=6/2qVAPvLy768Na8XqJHyfaQBOmu1VTQjHr1b0tqDos=; b=p2nmP4a16VC3D4IgF+YVJ78Mm6QjK6QCMSRwi7SKFjtIHwfChwaEq+wNPyqyJfQGhf qsa0a8zUWAHC5UpQoKDBVg1PWvqycXl+SQcH54awaBOooZPiF2ndcJ9xCpKhM1YrYdOG PzJcqerYp9i/k/mtDuZzjJ9mGblTL3YfFrYU3q9HOxMe9QLdrAEcR37yLra26HwSRTJH ygmP2CJIHDIum8QVbbMFqwBAkIxr2IMi9y6bNThIL5mbbZeqANDyF82jbih899ZytyfF WTHve+gHiySvBY+YbMrbv2JSn+Nq+3TZNl1KM57z9Bhvd9y7/PzKomp1uPF6AQi644VJ IVPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si41859684pgq.220.2019.08.11.01.56.07; Sun, 11 Aug 2019 01:56:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725999AbfHKIzf (ORCPT + 99 others); Sun, 11 Aug 2019 04:55:35 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42704 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfHKIzf (ORCPT ); Sun, 11 Aug 2019 04:55:35 -0400 Received: by mail-qt1-f195.google.com with SMTP id t12so11449697qtp.9 for ; Sun, 11 Aug 2019 01:55:34 -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=6/2qVAPvLy768Na8XqJHyfaQBOmu1VTQjHr1b0tqDos=; b=ZK247MQpGCfiPlj4HG6le8S9ob6xibKINExrP3oS+KUneAUryU7xK3+tF1N8P0FZVf BqyOGWQF9I5/pnm6NTpx1faSyZ5lc9v/y4xnJWY87QUORzsTpyI53b3XwhSWq/hZ4gzi JtFZ0ikk15BxYxH0K9BW5AqjejqNmIGIUYvSjW+uB7E71URijMzAJiFbIoeWWkq4P13f VDIA7adhkxRnDcrn1kd5le+8APImHyeyyA7luKMW8OS9FfIMMv+Xh7B7tRG/+2k4trT8 a2c21qsgl7agovqPdmH4FgYExxE/1tO8NHXEGG6CivE3Vz0C2xyjO52wgwUwYwqrHgMV TteA== X-Gm-Message-State: APjAAAVffyV1zs9UAC61FL0xCBxjKQIrvbaft9hLwqZtgL6S3gS2VxZK A1v1DtyfNsZO4+BULr6jPLnnJw== X-Received: by 2002:a0c:d91b:: with SMTP id p27mr25451190qvj.236.1565513734175; Sun, 11 Aug 2019 01:55:34 -0700 (PDT) Received: from redhat.com (bzq-79-181-91-42.red.bezeqint.net. [79.181.91.42]) by smtp.gmail.com with ESMTPSA id x26sm3314318qkn.116.2019.08.11.01.55.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 01:55:33 -0700 (PDT) Date: Sun, 11 Aug 2019 04:55:27 -0400 From: "Michael S. Tsirkin" To: Christoph Hellwig Cc: Ram Pai , Thiago Jung Bauermann , virtualization@lists.linux-foundation.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jason Wang , David Gibson , Alexey Kardashevskiy , Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted Message-ID: <20190811044431-mutt-send-email-mst@kernel.org> References: <87zhrj8kcp.fsf@morokweng.localdomain> <20190810143038-mutt-send-email-mst@kernel.org> <20190810220702.GA5964@ram.ibm.com> <20190811055607.GA12488@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190811055607.GA12488@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 11, 2019 at 07:56:07AM +0200, Christoph Hellwig wrote: > So we need a flag on the virtio device, exposed by the > hypervisor (or hardware for hw virtio devices) that says: hey, I'm real, > don't take a shortcut. The point here is that it's actually still not real. So we would still use a physical address. However Linux decides that it wants extra security by moving all data through the bounce buffer. The distinction made is that one can actually give device a physical address of the bounce buffer. -- MST