From patchwork Mon Jun 4 19:37:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Berger X-Patchwork-Id: 162868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3369DB6F9D for ; Tue, 5 Jun 2012 05:44:16 +1000 (EST) Received: from localhost ([::1]:50285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbdCI-0003Mr-4g for incoming@patchwork.ozlabs.org; Mon, 04 Jun 2012 15:44:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbdCA-0003Ls-Oa for qemu-devel@nongnu.org; Mon, 04 Jun 2012 15:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbdC8-0000Uw-IQ for qemu-devel@nongnu.org; Mon, 04 Jun 2012 15:44:06 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:49659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbdC8-0000Ub-CM for qemu-devel@nongnu.org; Mon, 04 Jun 2012 15:44:04 -0400 Received: from /spool/local by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Jun 2012 13:44:01 -0600 Received: from d01dlp03.pok.ibm.com (9.56.224.17) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 4 Jun 2012 13:43:07 -0600 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 4F18EC90057 for ; Mon, 4 Jun 2012 15:43:06 -0400 (EDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q54Jh5fP140378 for ; Mon, 4 Jun 2012 15:43:06 -0400 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q54Jgs3s001846 for ; Mon, 4 Jun 2012 13:42:55 -0600 Received: from d941f-5.watson.ibm.com (d941f-5.watson.ibm.com [9.59.241.119]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q54Jgr1b001801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Jun 2012 13:42:54 -0600 Received: from d941f-5.watson.ibm.com (localhost.localdomain [127.0.0.1]) by d941f-5.watson.ibm.com (8.14.5/8.14.3) with ESMTP id q54Jg24g007733; Mon, 4 Jun 2012 15:42:03 -0400 Received: (from root@localhost) by d941f-5.watson.ibm.com (8.14.5/8.14.5/Submit) id q54Jbx2c007590; Mon, 4 Jun 2012 15:37:59 -0400 From: Stefan Berger To: stefanb@linux.vnet.ibm.com, qemu-devel@nongnu.org, anthony@codemonkey.ws Date: Mon, 4 Jun 2012 15:37:47 -0400 Message-Id: <1338838668-7544-7-git-send-email-stefanb@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1338838668-7544-1-git-send-email-stefanb@linux.vnet.ibm.com> References: <1338838668-7544-1-git-send-email-stefanb@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12060419-3270-0000-0000-000006E57CFA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 32.97.110.150 Cc: andreas.niederl@iaik.tugraz.at, mst@redhat.com Subject: [Qemu-devel] [PATCH V19 6/7] Introduce --enable-tpm-passthrough configure option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Introduce --enable-tpm-passthrough configure option. Signed-off-by: Stefan Berger --- configure | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 804d8c8..8d8bee8 100755 --- a/configure +++ b/configure @@ -195,6 +195,7 @@ guest_agent="yes" libiscsi="" coroutine="" tpm="no" +tpm_passthrough="no" # parse CC options first for opt do @@ -827,11 +828,20 @@ for opt do ;; --enable-tpm) tpm="yes" ;; + --enable-tpm-passthrough) tpm_passthrough="yes" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac done +if test "$tpm" = "no" ; then + if test "$tpm_passthrough" = "yes"; then + echo "ERROR: --enable-tpm-passthrough requires --enable-tpm" + exit 1 + fi +fi + # # If cpu ~= sparc and sparc_cpu hasn't been defined, plug in the right # QEMU_CFLAGS/LDFLAGS (assume sparc_v8plus for 32-bit and sparc_v9 for 64-bit) @@ -1114,6 +1124,7 @@ echo " --enable-guest-agent enable building of the QEMU Guest Agent" echo " --with-coroutine=BACKEND coroutine backend. Supported options:" echo " gthread, ucontext, sigaltstack, windows" echo " --enable-tpm enable TPM support" +echo " --enable-tpm-passthrough enable TPM passthrough driver" echo "" echo "NOTE: The object files are built at the place where configure is launched" exit 1 @@ -3034,6 +3045,7 @@ echo "libiscsi support $libiscsi" echo "build guest agent $guest_agent" echo "coroutine backend $coroutine_backend" echo "TPM support $tpm" +echo "TPM passthrough $tpm_passthrough" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -3919,7 +3931,9 @@ fi if test "$tpm" = "yes"; then if test "$target_softmmu" = "yes" ; then if test "$linux" = "yes" ; then - echo "CONFIG_TPM_PASSTHROUGH=y" >> $config_host_mak + if test "$tpm_passthrough" = "yes" ; then + echo "CONFIG_TPM_PASSTHROUGH=y" >> $config_host_mak + fi fi echo "CONFIG_TPM=y" >> $config_host_mak fi