Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2332709ybi; Mon, 1 Jul 2019 10:07:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/hMfkvg0nxSzMKaehcz5sf/x2531ScJDO4lFtF+9On8H35boC2RZ1rfgKGN1HrdNWwx20 X-Received: by 2002:a17:902:29c3:: with SMTP id h61mr29780234plb.37.1562000834289; Mon, 01 Jul 2019 10:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562000834; cv=none; d=google.com; s=arc-20160816; b=ab2wVT8TyimNwg9DgH5RwkMr0evor2S+vmFQ1JP8dt+vmdHYkC7ECPY7k65/SZcFFL J7J+zgPeYfHdkZL31kuoJTwKpVYha6aXfkdxrZMwsSxtzPcYx7uhHLwhvr87RIsTQlgE TgXP07c8+ZWmpNNuJcTO0vDITmjzCQeDaWBNhpg8pVA5hlU7P4enFpA9KT9HdBMjxUNm 8lObMICksWKSjec/Il8Xp/DxstQs3VglUxW33WWjGY/t+WHileiSLya2KIlFObjSAw4h prrfX6JtUDmkasJ4/U2Gk+zmxmNHsYULu0SB3XPnbWw6wlcOwgZLjV4ZkjS9kEnJtMyr cbVQ== 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; bh=8+9CJgnlJKJH3KpDf7s00uChK3oShFkvmGKyc5YfF5o=; b=QnR8wd+z2aL+sIFWiGG6XUH1vhVedlRZrvZ/9Gm/dJAnF5xwSYPDCbIVVM9lRoqtsj t3tUcx/Zum3TtRYDum3Xwgp2BDkW49viVpbm33AczgwkE/e3VauQpLFDzOeUh0fQCniD hLT7uhL6L2ZcJM/B4d6SEcDpo7/bZQPWVnbLL/LkKaCcGZ8oxKcs/3tHqLbDcsYKU/mq gwnXOuIWHnXAa77jGviUply7M5PoB1zfzBEh2WWBgfC21TBtv6LoyQ1v1Mm25Da1irsT MYY2go5LIwNEinesmXaKNhGduJHLQb05gdK3WsqbGvXYB+mgHN+slJeTtOmIeE/vmn/K 6Efg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ammzUlm1; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q42si87491pjc.103.2019.07.01.10.06.53; Mon, 01 Jul 2019 10:07:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@kernel.org header.s=default header.b=ammzUlm1; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729374AbfGARCo (ORCPT + 99 others); Mon, 1 Jul 2019 13:02:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728253AbfGARCo (ORCPT ); Mon, 1 Jul 2019 13:02:44 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B8E621721; Mon, 1 Jul 2019 17:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562000563; bh=II2Jf2pNDbd0s5JMhTlbcxwH6Bk/SNuU/ykYA4KIAZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ammzUlm18IxuOBkz97uLHm/H+2wb6OsJECZHOpVn8+4aAYGv6rV37Q1dIloW9uUq8 4IpLok2//Ii7+v2TMx2WpendWYZiDoiKNraL+lAFuswmAGYxQ59isq9I1htEn4GCw/ DVMLnzr9wOSK+I+Iknby1fiV8sNez+1h7K37G2CA= Date: Mon, 1 Jul 2019 18:02:38 +0100 From: Will Deacon To: "Saidi, Ali" Cc: Will Deacon , Mark Rutland , "linux-arm-kernel@lists.infradead.org" , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Benjamin Herrenschmidt , Matt Mackall , "linux-kernel@vger.kernel.org" , "Rindjunsky, Ron" , "linux-crypto@vger.kernel.org" , Catalin Marinas , "Woodhouse, David" , marc.zyngier@arm.com Subject: Re: [PATCH 0/3] Add support for Graviton TRNG Message-ID: <20190701170237.druloljv4yoanv5i@willie-the-truck> References: <20190604203100.15050-1-alisaidi@amazon.com> <20190605122031.GK15030@fuggles.cambridge.arm.com> <7EC45708-38A1-4826-BC82-298EFAAE30B1@amazon.com> <3104F396-094F-454C-8308-BF651FAB99AB@amazon.com> <20190701082805.pifv4attux4mddld@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701082805.pifv4attux4mddld@willie-the-truck> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org [+Marc] On Mon, Jul 01, 2019 at 09:28:06AM +0100, Will Deacon wrote: > [Note: this was in my spam folder] > > On Fri, Jun 28, 2019 at 06:05:10PM +0000, Saidi, Ali wrote: > > On 6/7/19, 7:59 AM, " Ali Saidi" wrote: > > On 6/5/19, 7:20 AM, "Will Deacon" wrote: > > On Tue, Jun 04, 2019 at 08:30:57PM +0000, Ali Saidi wrote: > > > AWS Graviton based systems provide an Arm SMC call in the vendor defined > > > hypervisor region to read random numbers from a HW TRNG and return them to the > > > guest. > > > > > > We've observed slower guest boot and especially reboot times due to lack of > > > entropy and providing access to a TRNG is meant to address this. > > > > Curious, but why this over something like virtio-rng? > > > > This interface allows us to provide the functionality from both EL2 > > and EL3 and support multiple different types of our instances which we > > unfortunately can't do with virt-io. > > > > Any additional comments? > > Do you know when you'll have a chance to rebase arm64/smccc-cleanup? > > Sorry, Ali, this slipped through the cracks. Marc and I will chat today and > look at respinning what we had before; it should then hopefully be > straightforward enough for you to take that as a base for what you want to > do. Ok, I hacked on this a bit today and hopefully you can use this as a starting point: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=kvm/hvc I haven't given it any real testing, so apologies for the bugs. Will