From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4952DC433DF for ; Wed, 3 Jun 2020 12:09:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 17DAA207D0 for ; Wed, 3 Jun 2020 12:09:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b="B2gjWvmz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 17DAA207D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgSCj-0008P1-BO for qemu-devel@archiver.kernel.org; Wed, 03 Jun 2020 08:09:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSBe-0006o8-28; Wed, 03 Jun 2020 08:08:02 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:41353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSBb-0007yx-Or; Wed, 03 Jun 2020 08:08:01 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 49cSN472bmz9sT5; Wed, 3 Jun 2020 22:07:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1591186068; bh=l66gCwIrRiSwuLg0ZaPKtVUkHcSSYrgP/ssMJmn7Cp0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B2gjWvmzY6JjRzyG9hIEYu8DC8b/C6OHSOVnQCg2DQfmgKurMRHcc7517cpiAoWtB aA2HoNusPwbJ22VJLQR8y1oizFjJo7+7ZsBXgXCgcm0uQeczvnyLOC14snAw2SnK+e b5Xo5mtB5/gZF4vABkvU39UFcoDSH5D0+96CSf8E= Date: Wed, 3 Jun 2020 20:18:13 +1000 From: David Gibson To: Richard Henderson Subject: Re: [RFC v2 15/18] guest memory protection: Decouple kvm_memcrypt_*() helpers from KVM Message-ID: <20200603101813.GC11091@umbus.fritz.box> References: <20200521034304.340040-1-david@gibson.dropbear.id.au> <20200521034304.340040-16-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pair@us.ibm.com, brijesh.singh@amd.com, Eduardo Habkost , kvm@vger.kernel.org, "Michael S. Tsirkin" , cohuck@redhat.com, qemu-devel@nongnu.org, dgilbert@redhat.com, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , mdroth@linux.vnet.ibm.com, frankja@linux.ibm.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 01, 2020 at 09:13:01PM -0700, Richard Henderson wrote: > On 5/20/20 8:43 PM, David Gibson wrote: > > The kvm_memcrypt_enabled() and kvm_memcrypt_encrypt_data() helper funct= ions > > don't conceptually have any connection to KVM (although it's not possib= le > > in practice to use them without it). >=20 > Yet? >=20 > I would expect TCG implementations of these interfaces eventually, for > simulation of such hardware. Or are we expecting *this* interface to be = used > only with kvm/any-other-hw-accel, as the nested guest inside of the outer= most > tcg qemu that's simulating hardware that supports... Yes, this. The whole point of this stuff is that the guest is protected *from the hypervisor*, and therefore qemu can't expect to access guest memory. It's hard to imagine any way TCG could deal with that. An implementation for a non-KVM accelerator is entirely plausible, on the other hand. --=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 --UFHRwCdBEJvubb2X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAl7XeOQACgkQbDjKyiDZ s5Ls3A//QSIvAgoVD5g9hPQj0P+czIYikWw2+UHbALGMprjYwk7HkkZRnUsfJrgT 2cpaSOV5Mm2Ip/yoU7chK50zs//NlR/VKHGMs6SbhG/zf2zbT1dqNUoIf1O3X9hf xImS45BfTGKxgLFByYPrI2WgvkIfcMTdWt2GIYFZeNMwzlA/1CsFZY48OCfdfou6 a1G0NtThAnXxw08XzRhpGRkojSBhxxmqDfMPPA+NzrapbDzlru/l27HBiI17dhOy 58tQgi/mKJqXfcIFgN4fPUFn/+KYAzTNtHV7T1u1Tua/X7jQidCK0dwDTiyWXhmh ynEbhhINsehlQo1bMN8QNe3g6+XTJR4u7wh3o5hlRgIkKqP0raKmqVU0Rn6TdY/D LTYSmUj3f579YkoWAJ+Hosc6Q0Bclzm9aKL4NIvhCFQBlVN+s72rR+D1nM8pNu2Y XEGn8x0tRGXM9dX2blcwD4DaAfNltZm4GI1FGZQSRxDXedN9iqox6enf8zH2WvPY 8bM48H5fsD+blCMzOUMmkwwnF/yuDZ4C5M56kPUrpaqMgyAq2ryYuRQpHaF48DyX oYCToloDoR5/Y50J/8hmbjMgjWhvvaVLOtWhPyaNROmIfTPcRf8yUm5Yl69j6ewf /shLfIMiRWHUem0604JdWg7debNenU/29lkCIx65IFAz3QUQfys= =sr1S -----END PGP SIGNATURE----- --UFHRwCdBEJvubb2X--