From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web11.8595.1583311883421282289 for ; Wed, 04 Mar 2020 00:51:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=XCtFzcLs; spf=pass (domain: linaro.org, ip: 209.85.128.65, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f65.google.com with SMTP id g83so949193wme.1 for ; Wed, 04 Mar 2020 00:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wf3wZxEpD3x3Eic7yPKg51Xe170m2WcyVFFrsBT6AuY=; b=XCtFzcLsEkycNz0NdNR41PIMvPmI84j2QtUti9r6hLuk89U1AVXGYHtLk7Xvfj3D6T O5qL1pDNulEYRyDnNmVLk5TA3LdUuHGEM0PRkx952AMARTQiQlqqrMHNy9zDJRdHcsIn QyvLa3LLgZMIQaGKUJuktw1sqCjNzJ7vq8uB7kgK6e4fml/yii8+Ue/JkFRW/fliGPYt n8EWKDdTdT31lfKMjZEqp6k0DUpLOyWgwj2vg8W3HIkGKapg0pUkxxY4lZ1foYGi1RRH 5dcmRx1Ba9GsZ7h93Fxc6sxk3EQgw2ofkvYzOYF0gMUmBQrI8NDT+2k6w5lg0lAT2e9W GdLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wf3wZxEpD3x3Eic7yPKg51Xe170m2WcyVFFrsBT6AuY=; b=nqNzRIIFz3cJYdSE3IuWKdh0Jt76MaYb62R4NRenAxILg2DAZvSnovdh8OwwoRZS5f mSMcLmBlMX2watDHiZTYXFzh3sJAls3JJvxQDfSwEt1d6ZzCvl1mwaq9NfWNyVdzjiYF gi1NUJ3Owi68rLmOQ+ANUD6toPxcLDYwsZNMgr8f5jb8+zbYyLg1aXTo0hFLTd/O+CoG ZC8WRBLc/+Y/e4f1YjxQFHDCL12DtuV64bmkjDYvJXT5DEa7nHuB8sT48IKPu4YXO79z BQFJhUTk7WOMBXwEZlRelKtmR1ZmrjSXj8Y6kWv3YMSxJuLXOzWh+Wq1Xat6WOT8P/GM muxg== X-Gm-Message-State: ANhLgQ19z6qohwu/CI4xdVxsipdLN+E5LwBbDyxA4wfp00FennYUiHQg eIa1Oc2u6g8jNw4sfCtn6cytd4xO/OBLrlyn0mXBWbQeQBsnaA== X-Google-Smtp-Source: ADFU+vuF32yQl43aR/Oqiwqf9VKyYig06LCmqOBtuiKNBSa2xq/vCIk1bSg/A8ovB7EHzZWTcu6X/dz+2zuLPazRDHs= X-Received: by 2002:a1c:9d43:: with SMTP id g64mr2489992wme.62.1583311881387; Wed, 04 Mar 2020 00:51:21 -0800 (PST) MIME-Version: 1.0 References: <20200226190514.31395-1-ard.biesheuvel@linaro.org> In-Reply-To: <20200226190514.31395-1-ard.biesheuvel@linaro.org> From: "Ard Biesheuvel" Date: Wed, 4 Mar 2020 09:51:10 +0100 Message-ID: Subject: Re: [PATCH v3 0/9] ArmVirtPkg: implement measured boot for ArmVirtQemu To: edk2-devel-groups-io Cc: Laszlo Ersek , Auger Eric , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= , Stefan Berger , Leif Lindholm Content-Type: text/plain; charset="UTF-8" On Wed, 26 Feb 2020 at 20:05, Ard Biesheuvel wrote: > > Wire up the various existing pieces so that we can implement measured > boot on ArmVirtQemu based on the TPM support in QEMU, just like it has > been implemented for x86 in OvmfPkg. > > The main difference is that on ARM, we first need to discover the TPM base > address from the device tree provided by QEMU, as well as the PSCI method > used to perform a cold reset. > > Changes since v2: > - add Laszlo's ack to patches #2 and #4 > - add PcdTpm2SupportEnabled PCD declarations to all individual platforms in > ArmVirtPkg, even though only ArmVirtQemu really needs it > - split patch #5 into several patches > > Changes since v1: > - use a separate ResetSystemLib instance based on on-demand parsing of the > DT, and expose it via the ResetSystem PPI to other client PEIMs > - add Laszlo's ack to #1 > - incorporate Laszlo's review feedback across the board > > Code can also be found at: > https://github.com/ardbiesheuvel/edk2/tree/armvirt-tpm > > Cc: lersek@redhat.com > Cc: eric.auger@redhat.com > Cc: philmd@redhat.com > Cc: marcandre.lureau@redhat.com > Cc: stefanb@linux.ibm.com > Cc: leif@nuviainc.com > > Ard Biesheuvel (9): > OvmfPkg/Tcg2ConfigPei: introduce a signalling PPI to depex on > ArmVirtPkg/PlatformPeiLib: make PcdLib dependency explicit in .INF > ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT > ArmVirtPkg: implement ArmVirtPsciResetSystemPeiLib > ArmVirtPkg/ArmVirtQemu: add ResetSystem PEIM for upcoming TPM2 support > ArmVirtPkg/ArmVirtQemu: enable TPM2 support in the PEI phase > ArmVirtPkg/ArmVirtQemu: enable the DXE phase TPM2 support module > ArmVirtPkg/ArmVirtQemu: enable the TPM2 configuration module > ArmVirtPkg/ArmVirtQemu: enable TPM2 based measured boot > Merged as edk2-stable202002..0980779a9ddc Thanks all