Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp332645imm; Mon, 4 Jun 2018 18:53:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKvk6bZPT3hJYtmyn3x6Zt09KNqPXUyWr4iFV1ax2K6lHzQonEyrm4Q2PtmutHq/EFfrmbh X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr8281035pln.40.1528163606850; Mon, 04 Jun 2018 18:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528163606; cv=none; d=google.com; s=arc-20160816; b=Lwkc5WDLGSdWx9w/vOqwBVJ49emflk28F8jVuB/ECcAlpSLasCI91rgcvJHoM7eG9T 7ranjedJ901GYLznii2VTVmP6sRWemSfxkARJPHWeqdBGESAxR4xrYQfMep1JyLbXOWe DlZtLA1Ny0vGZPYZgglNAVOmV2xQXWODm2hqjoh8KyXEjIv0R11OHwHeOvYjTndTSRMT IKuGV2iClAX575i/fyI2GjgOR5txsDqPZo99+DfXDrSi1JUdmOSkL1+vGJKaWgeXurBX M5yh5z5WWoNxK1kmcMiOU8EsNmIwvR6nqCkyLtZ9MQ53lOXJ3pYDwd27/wm02Hq2KQ9r egbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=bNW6GmZX32wEWNJoO2dqliAmRewNtQNPIScfcbwkesk=; b=UADgneC3ZDYnnC+vI6kVNgdKb+940kcZ4bmUe0hylbZ9DmJpBlL3EJxd7H/HeOMfvQ jb0fYItf9PwNQOyw3gTL0erTOmMjnZMm+qJe5aYR/pyuVTjhE9ZSRzlIB3VwyOXgQIwv Qo74NZ9+vZZEcOg4PquI/AH0eOGX5qj11QNsbic/qxzCfr1QdRZyWSD1D7ljIiwTPzRk 6sSHSCWLm6ctBxuNrOymaUpKM5nwypp8STjysZ7Cj8U8e3cv9vUn9XICJFF8pks5/5BB i61ZrHf9Jwf8F+vuW7XD5nmITSMON90RiFsqIKzDb8BVyMqLt/RJ4s/Ri3uRZdf4CcdN leBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=MIvTYYDb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7-v6si8530410pgr.31.2018.06.04.18.53.10; Mon, 04 Jun 2018 18:53:26 -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; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=MIvTYYDb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751375AbeFEBwq (ORCPT + 99 others); Mon, 4 Jun 2018 21:52:46 -0400 Received: from ozlabs.org ([203.11.71.1]:37907 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbeFEBwp (ORCPT ); Mon, 4 Jun 2018 21:52:45 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 410FDq3rw9z9s35; Tue, 5 Jun 2018 11:52:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1528163563; bh=UJFKONgqJgpd+Ndd3FJ9C8jOZOoHMc6K3sLUmK31Ms0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MIvTYYDbccs6gUu43h1zgBThCVusEH3po++9BXiWziDL3jnmbl0UOassGWBzwFtDc Xpoff62cedtM+NxeUYPeXyaSvVUwe+c11g5sZ0+nilsno0PcroslQJGaGgdGobMROr Iw0XZW+SJDqOkChcDmJWbdB+BAj+h4v5opZqFxug= Date: Tue, 5 Jun 2018 11:52:36 +1000 From: David Gibson To: Benjamin Herrenschmidt Cc: "Michael S. Tsirkin" , Anshuman Khandual , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, aik@ozlabs.ru, robh@kernel.org, joe@perches.com, elfring@users.sourceforge.net, jasowang@redhat.com, mpe@ellerman.id.au, hch@infradead.org Subject: Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices Message-ID: <20180605015236.GJ5140@umbus.fritz.box> References: <20180522063317.20956-1-khandual@linux.vnet.ibm.com> <20180523213703-mutt-send-email-mst@kernel.org> <20180604085742.GQ4251@umbus> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YZVh52eu0Ophig4D" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YZVh52eu0Ophig4D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 04, 2018 at 07:48:54PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2018-06-04 at 18:57 +1000, David Gibson wrote: > >=20 > > > - First qemu doesn't know that the guest will switch to "secure mode" > > > in advance. There is no difference between a normal and a secure > > > partition until the partition does the magic UV call to "enter secure > > > mode" and qemu doesn't see any of it. So who can set the flag here ? > >=20 > > This seems weird to me. As a rule HV calls should go through qemu - > > or be allowed to go directly to KVM *by* qemu. >=20 > It's not an HV call, it's a UV call, qemu won't see it, qemu isn't > trusted. Now the UV *will* reflect that to the HV via some synthetized > HV calls, and we *could* have those do a pass by qemu, however, so far, > our entire design doesn't rely on *any* qemu knowledge whatsoever and > it would be sad to add it just for that purpose. >=20 > Additionally, this is rather orthogonal, see my other email, the > problem we are trying to solve is *not* a qemu problem and it doesn't > make sense to leak that into qemu. >=20 > > We generally reserve > > the latter for hot path things. Since this isn't a hot path, having > > the call handled directly by the kernel seems wrong. > > > > Unless a "UV call" is something different I don't know about. >=20 > Yes, a UV call goes to the Ultravisor, not the Hypervisor. The > Hypervisor isn't trusted. Ah, right. Is that implemented in the host kernel, or in something further above? --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --YZVh52eu0Ophig4D Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAlsV7OIACgkQbDjKyiDZ s5LDZw/+O2nYPWBGyN1jbpBcGO/3bosxPXKBX2ZQFxEyD9OqN+pUnaZf371hjSFR d1XLmUvoZOSp4ErGc+UtEk+OsynoYq7OL2y8q9bAf7ZUiyE7s6Qcnt77F9BASHLV HcYd55P9f9mJl5p8LTD3ZHOee+9aWfY0djF0FTtKgF2uSQsdRhMHF+9YVrh9hq0q b6nsuYEJ97y0/jOdcxRI0n1SPZPzJZHH9zGogRU14iS/D8m8qKRXeJCzHTlGHIuL KPlelYmqj7jc8O6xSkDLPv9p9HsKIxo8Ke2GwNNMuD+osBZb6lLO6fpi65PiL7k8 LcEqe3LfC4gQZtkmWyi/9hfFh68flJbP95+TPlqLLNoN6xog8h6qv+zUotIGPNss 5K9BHZiikGdnK7O5B2HB9aai0Tb6Zg3DkJyg81b8FKv5PmZvGRUyB3qRYEkZ4SxL qAhebhropdXVmx6VYWodQsXumJNgnh6oTlncrZw4bHLXHWUzfDOgLjrVSZbfukUX 23Y+BDrkGFygDCeA+0PA/lYN4nm/LZtqWsqJvlVyiRMwCpmx+Hm/SqzNeXMjg1kB vwwXndA/FfWFMzm0w1+l8JcravBxIcx1iLmanMnEs3d/++hUhKMvnGR0E+35cAw8 daSslcvU9Q45hN0M4tP3bZsYDHxo8bqMwouuFXO+jYrYsEhuF2o= =JaZJ -----END PGP SIGNATURE----- --YZVh52eu0Ophig4D--