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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham 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 195CEC4338F for ; Sat, 24 Jul 2021 21:13:39 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DE6360E92 for ; Sat, 24 Jul 2021 21:13:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8DE6360E92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8870983215; Sat, 24 Jul 2021 23:13:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="FwEBXSi1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1DBD8831CA; Sat, 24 Jul 2021 23:12:18 +0200 (CEST) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1E2A482B36 for ; Sat, 24 Jul 2021 23:12:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-wm1-x335.google.com with SMTP id n21so2868016wmq.5 for ; Sat, 24 Jul 2021 14:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=mIrB2Kmbo3iH5aCVu8f1bWMLxggXv9qD73Go5tjOkz0=; b=FwEBXSi1ghZSi+x3Rfk9DVSQLmLpORtSITRwXsWvfHMWoJmxjtxWqqSnzyFPlLoE89 ElzTBU8UpJofms+NMTt2HXfvtRMnoNXLhM8gP8dHSW1gRj7Ic8DG3TYF2VVrQqr3gHKZ ZyEWTutOGWW5DOh64q9wmeNo9mCqIvoNnHzR4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=mIrB2Kmbo3iH5aCVu8f1bWMLxggXv9qD73Go5tjOkz0=; b=ncfAnUGqB+CfVvPL1pifjk5/g0oYwSvYTNl1QEdhE9FUJ6OJXXqREJiGJ33yckJFLV ez+KkiaKEDN7aX7m+PehRKGrFNG0FR1iG5/78ugxlYy366av5CKJSTOEuGTupY9L7AH6 Fgp+UMdJFvqRUEQ5FUJCApQbRmF3mta/33J2kFgwSC5EHGXg0Ybe0Nq391WzdgZNNY+6 1p9O4h9X7b3PiR6dGoByuqvgapNjGCYexVoi6GQhaeKUt1HNuAB5eJ70Fgn4VxMgzaHE PhyfI4it1UxwweEXAHCO4Cun5zgxGfPOlVbmhhYVHltn5VH8P0ZnW9iV6MFncCaU0iib pCog== X-Gm-Message-State: AOAM531tUuacwabO3+D2pLmjYXLI9KaWsHDsJZ07fxWdCFeHR+TjtyAm WXb0yS8PJFxy7jA7aBvrr/mvWSnFw3YKcQsoYjYgLw== X-Google-Smtp-Source: ABdhPJx6EEA+KrC95AXgJuPP/C916WXmHTEAZKbk12o+REtOHJa7J+1oTEuqjrQLPeQxnWySNQEeFtszpHI65xiJf3s= X-Received: by 2002:a7b:c24e:: with SMTP id b14mr8498520wmj.74.1627161123255; Sat, 24 Jul 2021 14:12:03 -0700 (PDT) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Sat, 24 Jul 2021 14:12:01 -0700 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20210718201806.761202-9-sjg@chromium.org> References: <20210718201806.761202-9-sjg@chromium.org> <20210718201806.761202-1-sjg@chromium.org> Date: Sat, 24 Jul 2021 14:12:01 -0700 X-Google-Sender-Auth: anU739GETXT1WcaPc4DdZYM9eD4 Message-ID: Subject: Re: [PATCH v2 08/10] sandbox: tpm: Support storing device state in tpm2 To: Simon Glass Cc: Ilias Apalodimas , Thirupathaiah Annapureddy , Heinrich Schuchardt , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean At present the tpm2 emulator does not support storing the device state. Add this so we can handle the normal vboot flow through the sandbox executables (VPL->SPL etc.) with the TPM contents staying in place. Note: sandbox has not yet been converted to use livetree for the state information, since livetree does not yet support writing to the tree. Signed-off-by: Simon Glass --- (no changes since v1) drivers/tpm/tpm2_tis_sandbox.c | 139 +++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) Applied to u-boot-dm, thanks!