Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp423984rdg; Tue, 10 Oct 2023 14:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEaQ1KORRmp3f8kJHEN8fFOq59Ih+jcwrHjuPW6pf44Wtcz8xvA1VBEp7zZ8ep2WbyGNgV X-Received: by 2002:a05:6a00:8cc:b0:690:d48a:2acc with SMTP id s12-20020a056a0008cc00b00690d48a2accmr20973307pfu.29.1696974233566; Tue, 10 Oct 2023 14:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696974233; cv=none; d=google.com; s=arc-20160816; b=AzlgmIiJV2M05IwsI3RFpIju5Wx0K4W3okar85bm9t+xpKfTRVpHhfc1b7hWPpIfC1 Bghei4/BZ3x01mKCrb3fU43lzWiFEszonlegMDItEKuWKgJOEsjhZeywTJlY6ZLibY/U txtM+VFPoVpZMw25eCGM50aYXyebotUebbtlH06JvhAJTQB4ViyCadFxR7mdTCv1NaOJ Bpo7bbc3A4y+Wv484NFwvln7vfzpcYDK8Daxv6SnyiL1K7lL0TZVYeDtMLYcwYbZVkCy nD5Fp5LpVGubgU9Rd1U8JP3XhrWJW5mPJmOoBe8H5N/rDgeAqgpAiscgR7r7ZxqTAKEy VLxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7j58jSxoMSjtICjzuYVhVJduEEO2aGmUt8x1byZkixA=; fh=gZv53XY58cfU6NzjWgA/8+MNY1VbE3rIQgCIlPwKu78=; b=DTxBCFw1SE7Ck+QMd32yOlEHmQ3Y22WLndIMwqWACGcZoVigHaRzCVWjkDslnsViHv Bhv3TQGkFBB1hJ0W5iVz08dk24meHl+VZUn2Hz3DEg2C7cgORyFPl53J3yE3CeXq7+wt 09pU4VbzLJdcwZGI48l98WD9Ddo2FBAePy7lA+CsgfbjCmTJo7qAMfbvgI8U0mtcvtxm iQZ0T4EhrDGZX6N1irTpQQHLGSfLzVdFdO3brYRuBcp2tuYKVxJ2TlzLB1XHDKueiDbg BEopzUoLbwnidZZ7yWJnS72KvssIIOsa41fZe3VYc6fBLwC5GN/e+DbH28pN5n0ICzRd Tc7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GDTfDVOP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id b10-20020a056a000cca00b0069026a3de0asi10955850pfv.138.2023.10.10.14.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 14:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GDTfDVOP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 11F2F80268D9; Tue, 10 Oct 2023 14:43:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjJJVnj (ORCPT + 99 others); Tue, 10 Oct 2023 17:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjJJVni (ORCPT ); Tue, 10 Oct 2023 17:43:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155AB1FC9 for ; Tue, 10 Oct 2023 14:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696974176; 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=7j58jSxoMSjtICjzuYVhVJduEEO2aGmUt8x1byZkixA=; b=GDTfDVOPCXd43oTsdcDsVkG/8y49AlufqUt+7iV540QHPO4aR0ghFjdR3o7Lz6pjOJwH/w exyzAteNvx3WluFlMzk08FoBfocwIHRcaenyc4tPmHGfWFoY5OSqlFEHGzC6+dpRK13jff OmJR+qD51xjYUGA50Czp08/p5sjOZq4= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-2LUMiXf0O2SFFihK2eyRaA-1; Tue, 10 Oct 2023 17:42:55 -0400 X-MC-Unique: 2LUMiXf0O2SFFihK2eyRaA-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3172a94b274so4190277f8f.0 for ; Tue, 10 Oct 2023 14:42:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696974173; x=1697578973; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7j58jSxoMSjtICjzuYVhVJduEEO2aGmUt8x1byZkixA=; b=I9gGRDJuwdlsqzo8coloCLX6kERW+EIDXEezcIIGE2Lk+ENJXTZ8s3kFVmJGKfacQy E4LrsYx9J+AZZMadxAVTcrW3VbqkoAo9LP59Nlt8w8XFrRbut0IO3PlIGnG2AWHPjcmS UGeky4yiJHxZFJbKyVpvvGfnrZHWZ7oH3Nes8Pxv0rY32pG/C4oruO3M1SWTZxIHPCJM r/FJojuqqegGYlv882ZshBvf6He6866qxmt06nkXZgkTVD7T/Tsm4JfVUaSNXqdbEwoQ 2GWWW91JOBhAMreyr0zDXe4Ucj0GJgHbvKa25tO9egDDNXyOkBvjcJF4RxAiSqTFFiwv eHpg== X-Gm-Message-State: AOJu0YwC+acjKLwiUj1cy/foHjYOlHKhgeRaDQsBQoyFnnIN1qTjXGVL AGFDBIOmpESP7/bNuCO/I5sb4PUQvmdlM+Zui+J6i+BrFPLUp9HezKwvAu4BqKo4i+Kc42YlwhZ FhK3vg+1AI1Wxs9snwKgtAiCsvgkKWS8c X-Received: by 2002:a5d:4486:0:b0:320:8291:5605 with SMTP id j6-20020a5d4486000000b0032082915605mr16776326wrq.2.1696974173609; Tue, 10 Oct 2023 14:42:53 -0700 (PDT) X-Received: by 2002:a5d:4486:0:b0:320:8291:5605 with SMTP id j6-20020a5d4486000000b0032082915605mr16776313wrq.2.1696974173219; Tue, 10 Oct 2023 14:42:53 -0700 (PDT) Received: from redhat.com ([2a06:c701:73d2:bf00:e379:826:5137:6b23]) by smtp.gmail.com with ESMTPSA id bv2-20020a0560001f0200b0032d09f7a713sm2878219wrb.18.2023.10.10.14.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 14:42:52 -0700 (PDT) Date: Tue, 10 Oct 2023 17:42:49 -0400 From: "Michael S. Tsirkin" To: Alexander Graf Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Herbert Xu , Olivia Mackall , Petre Eftime , Erdem Meydanlli , Benjamin Herrenschmidt , David Woodhouse , Jason Wang , Xuan Zhuo Subject: Re: [PATCH v5] misc: Add Nitro Secure Module driver Message-ID: <20231010174115-mutt-send-email-mst@kernel.org> References: <20231010191815.13641-1-graf@amazon.com> <20231010163151-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 14:43:50 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 11:29:00PM +0200, Alexander Graf wrote: > > On 10.10.23 22:34, Michael S. Tsirkin wrote: > > > > On Tue, Oct 10, 2023 at 07:18:15PM +0000, Alexander Graf wrote: > > > When running Linux inside a Nitro Enclave, the hypervisor provides a > > > special virtio device called "Nitro Security Module" (NSM). This device > > > has 3 main functions: > > > > > > 1) Provide attestation reports > > > 2) Modify PCR state > > > 3) Provide entropy > > > > > > This patch adds a driver for NSM that exposes a /dev/nsm device node which > > > user space can issue an ioctl on this device with raw NSM CBOR formatted > > > commands to request attestation documents, influence PCR states, read > > > entropy and enumerate status of the device. In addition, the driver > > > implements a hwrng backend. > > > > > > Originally-by: Petre Eftime > > > Signed-off-by: Alexander Graf > > Could some documentation about how this device works be posted on virtio > > list please? > > > Sure! What is your preferred method to provide this? :) > > Alex > Posting patch adding a text file with it to virtio-comment would be best. > > > > Amazon Development Center Germany GmbH > Krausenstr. 38 > 10117 Berlin > Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss > Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B > Sitz: Berlin > Ust-ID: DE 289 237 879 > >