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.3753.1578390486839216169 for ; Tue, 07 Jan 2020 01:48:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=FV+fVj+j; 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 p9so18196098wmc.2 for ; Tue, 07 Jan 2020 01:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5cRbfohByy7q7gUrVFaEOUpW5g0hGLFRjTnDtq8OH3M=; b=FV+fVj+jQFAgYdXsTLtaiaB0BKbDrHVLWlxj9m3okDUJd3HHDmpRx1R2o2CIbAXLJj ubxBfbalFJcuEJdVPb9oBei1Ccst70s8aZ4HjZp/PjtVqpmcYvuUrOT5/gw/Bqtiq2z+ cYKEii+lrDlq88F5HZDadCkdwncXe53rqz1tvdSaaExAHlOI19dj5UWWnZFA706unjuI aCDfsKmVtrrqD98UBCY/oJ9vWgz3SaRtRdgQYk63wjUXcmrQN8B4Nz+hmtmtVXGaVIs8 bpWsLTvTYlC/6P+fWFu6kWP/9NcMTtHxGGHZvbPIkIXe4Ope96BDBh2qW8UKkS/VRnxq t/bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5cRbfohByy7q7gUrVFaEOUpW5g0hGLFRjTnDtq8OH3M=; b=RVCwT+i7wHGXKPoIyRF6DF4jokC2FS3jpYDiovWNWybEcNnvRoMvNj8cxLBbpMxsG/ 1Dp4sm269Tmfm0UpIG3p/iW8E2u8/H94RoOKwrqidITrfZQcbwXqUXgZmSDC6L9BJnWo vp6F1imDhlOVIDafQig2bbnTLiWrVfpG+bWOq5PPqSKuhIFOm7lSHWAbK7SKcUbl42n8 tVmq+oVSyVh7CAk+7qooH81Q27jiDU0yk1aP7XFJTUbN3T5eExeyX6O+s6uB8RV2+RrB a0B7ljfVLUf13M6ECJdMzAlG7I+BeLOBGgRCyUbzOlJ3+OEpY4Up+PhOn8H0aOoRhaV8 b3xg== X-Gm-Message-State: APjAAAUjv12JmbCC/ZqDkSLlLIccUgA+eRKRdvrnl2J2ycl3bQLolltF OaJAwcVE+MMOlsHpkXQMIFH5zz1dk8Lbow== X-Google-Smtp-Source: APXvYqzno0ciy61q7b84W5VfmeOKY6eWNjAEdeanWYusiWrgJ0/G7cIwkSpoGjhD4d9Qh+fC0EshLw== X-Received: by 2002:a1c:a406:: with SMTP id n6mr39090143wme.40.1578390484552; Tue, 07 Jan 2020 01:48:04 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2a01:cb1d:112:6f00:cc7e:d2b6:8b0c:cb36]) by smtp.gmail.com with ESMTPSA id u1sm25870210wmc.5.2020.01.07.01.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 01:48:03 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: lersek@redhat.com, Ard Biesheuvel Subject: [PATCH 0/4] ArmVirtPkg: implement measured boot for ArmVirtQemu Date: Tue, 7 Jan 2020 10:47:56 +0100 Message-Id: <20200107094800.4488-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Wire up the various existing pieces so that we can implemented 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, so this is added to the existing implementation of PlatformPeiLib. The associated QEMU changes are under development in Linaro, and will be sent out for review to the appropriate mailing list shortly. Ard Biesheuvel (4): OvmfPkg/Tcg2ConfigPei: introduce a signalling PPI to depex on ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT ArmVirtPkg/PlatformPeiLib: implement Reset2 PPI based on PSCI ArmVirtPkg/ArmVirtQemu: add optional support for TPM2 measured boot ArmVirtPkg/ArmVirtPkg.dec | 5 + OvmfPkg/OvmfPkg.dec | 4 + ArmVirtPkg/ArmVirtQemu.dsc | 71 +++++++ ArmVirtPkg/ArmVirtQemu.fdf | 5 + ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf | 15 +- OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf | 6 +- ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c | 205 +++++++++++++++++++- ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 10 + 8 files changed, 308 insertions(+), 13 deletions(-) -- 2.20.1