Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp703246ybt; Mon, 6 Jul 2020 21:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Ay2Vh9kLJi2UeHVtqoZtyA6vgS0JHT3fPCf4M0d8mjcc9Uql5wlSxoUetkPukz1cprPT X-Received: by 2002:a05:6402:1246:: with SMTP id l6mr28075361edw.224.1594094641857; Mon, 06 Jul 2020 21:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594094641; cv=none; d=google.com; s=arc-20160816; b=EulZ+ojTAYfBpbbS1oiCBWMqBI3nInM/M1DBsBinWsRD8zT5IQ5/DJfLijVje8tUh1 c48HwFGFgL9w5vB31jNEx1C4bv4s30/szOn8IBlmHOW9wdHm3YjZkYXfyYpO56D29//5 JgEfw/9U0gSiaGrSyUfkFzIgsiQuj/26MvjQSPhS8dtwMxQV0t9SBHPGDHCJ5E9t7QBW Z55LJMumXqRVp4KU029GTXIElbDdujx8oy/2eR/YZ74gsjFkuSA1UCnWmN1lWHmt36dX nDPS5SrOzI2vQX3wn5SvYKcYZpz4L7nGaqjgBC79siy5zUaT3RqJVGGxY8hjQM2cpEHH FCEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=DSoVKgLhmIvSgO2Q3Uc2ecTee6jQ5WZd7rwOqqrtaho=; b=zxIhAGYHlomZZeIcOIusVp58QBQhxZ0uD0xEg0Ai2nLbLvTbOlDWyX39YecuhOyPcs 7LlFhuGLShmXkCDvirTBpRCZFJaebn5G9sWPwN/qqCx1rrjnXSAOWi1V0jstRkKXJML4 SOTZsZBOXpsUoTrwZwCollAOp7B2ey6N5HJPKVx3axHzGKXJN3oMaEJc0la0qMg9rZul AhLZz/5W/xvcmWOOLE4325LDE5Na0PRvEX4om+xFXYGHpFuCxOv37YJqzi7YXBrbtT/o XWRDcpMSb+ALgentFz1ZiCB5IjOL0uZsqpSwHrAx99a+oeqZ0DctcCLiHCm7ISZOiUJp OflA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co3si13797708edb.134.2020.07.06.21.03.38; Mon, 06 Jul 2020 21:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726757AbgGGEDa (ORCPT + 99 others); Tue, 7 Jul 2020 00:03:30 -0400 Received: from mga18.intel.com ([134.134.136.126]:21957 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbgGGEDa (ORCPT ); Tue, 7 Jul 2020 00:03:30 -0400 IronPort-SDR: nAnDiC2pzrszc8O5ingc2IlOy7z6iMSreRMK66eshGUJqWc0Jd6cL30vTVx5BAYGAasa01VEpJ u2NYnz29LIIA== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="135001042" X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="135001042" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 21:03:29 -0700 IronPort-SDR: 9QftieGaTePgysf8PsOk6elMAa2ZpPKOnn/j3vBI93Dw8P/wuXmFFdZ7G8K9JAwqkmigw558Gr o/Il6RW7Rrow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="268077386" Received: from apiccion-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.45.178]) by fmsmga008.fm.intel.com with ESMTP; 06 Jul 2020 21:03:26 -0700 Date: Tue, 7 Jul 2020 07:03:25 +0300 From: Jarkko Sakkinen To: Stefan Berger Cc: Stefan Berger , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table Message-ID: <20200707040325.GB143804@linux.intel.com> References: <20200706181953.3592084-1-stefanb@linux.vnet.ibm.com> <20200706181953.3592084-3-stefanb@linux.vnet.ibm.com> <20200706230914.GC20770@linux.intel.com> <78ec872f-89b3-6464-6ede-bd0a46fe5c4c@linux.ibm.com> <20200707022416.GC112019@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 11:08:12PM -0400, Stefan Berger wrote: > On 7/6/20 10:24 PM, Jarkko Sakkinen wrote: > > On Mon, Jul 06, 2020 at 07:55:26PM -0400, Stefan Berger wrote: > > > On 7/6/20 7:09 PM, Jarkko Sakkinen wrote: > > > > On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: > > > > > From: Stefan Berger > > > > > > > > > > In case a TPM2 is attached, search for a TPM2 ACPI table when trying > > > > > to get the event log from ACPI. If one is found, use it to get the > > > > > start and length of the log area. This allows non-UEFI systems, such > > > > > as SeaBIOS, to pass an event log when using a TPM2. > > > > > > > > > > Signed-off-by: Stefan Berger > > > > Do you think that QEMU with TPM 1.2 emulator turned on would be a viable > > > > way to test this? > > > > > > Yes. > > Is the emulator bundled with QEMU or does it have to be installed > > separately? > > It has to be installed separately. On Fedora 31 it would just be a `sudo dnf > -y install swtpm-tools` and you should be good to go with libvirt / > virt-manager. Is there some packaging for Debian/Ubuntu available? /Jarkko