From: Quan Xu <quan.xu@intel.com> To: stefano.stabellini@eu.citrix.com, qemu-devel@nongnu.org, armbru@redhat.com, lcapitulino@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, eblake@redhat.com, kraxel@redhat.com, meyering@redhat.com, mjt@tls.msk.ru, sw@weilnetz.de, wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com Cc: Quan Xu <quan.xu@intel.com>, xen-devel@lists.xen.org Subject: [Qemu-devel] [PATCH v4 5/5] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init() Date: Tue, 10 Mar 2015 08:14:33 -0400 [thread overview] Message-ID: <1425989673-2812-6-git-send-email-quan.xu@intel.com> (raw) In-Reply-To: <1425989673-2812-1-git-send-email-quan.xu@intel.com> make sure QEMU machine class is initialized and QEMU has registered Xen stubdom vTPM driver when call tpm_init() Signed-off-by: Quan Xu <quan.xu@intel.com> --- vl.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/vl.c b/vl.c index f6b3546..0bbdaa1 100644 --- a/vl.c +++ b/vl.c @@ -4114,12 +4114,6 @@ int main(int argc, char **argv, char **envp) exit(1); } -#ifdef CONFIG_TPM - if (tpm_init() < 0) { - exit(1); - } -#endif - /* init the bluetooth world */ if (foreach_device_config(DEV_BT, bt_parse)) exit(1); @@ -4225,6 +4219,17 @@ int main(int argc, char **argv, char **envp) exit(1); } + /* + * For compatible with Xen stubdom vTPM driver, make + * sure QEMU machine class is initialized and QEMU has + * registered Xen stubdom vTPM driver. + */ +#ifdef CONFIG_TPM + if (tpm_init() < 0) { + exit(1); + } +#endif + /* init generic devices */ if (qemu_opts_foreach(qemu_find_opts("device"), device_init_func, NULL, 1) != 0) exit(1); -- 1.8.3.2
WARNING: multiple messages have this Message-ID (diff)
From: Quan Xu <quan.xu@intel.com> To: stefano.stabellini@eu.citrix.com, qemu-devel@nongnu.org, armbru@redhat.com, lcapitulino@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, eblake@redhat.com, kraxel@redhat.com, meyering@redhat.com, mjt@tls.msk.ru, sw@weilnetz.de, wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com Cc: Quan Xu <quan.xu@intel.com>, xen-devel@lists.xen.org Subject: [PATCH v4 5/5] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init() Date: Tue, 10 Mar 2015 08:14:33 -0400 [thread overview] Message-ID: <1425989673-2812-6-git-send-email-quan.xu@intel.com> (raw) In-Reply-To: <1425989673-2812-1-git-send-email-quan.xu@intel.com> make sure QEMU machine class is initialized and QEMU has registered Xen stubdom vTPM driver when call tpm_init() Signed-off-by: Quan Xu <quan.xu@intel.com> --- vl.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/vl.c b/vl.c index f6b3546..0bbdaa1 100644 --- a/vl.c +++ b/vl.c @@ -4114,12 +4114,6 @@ int main(int argc, char **argv, char **envp) exit(1); } -#ifdef CONFIG_TPM - if (tpm_init() < 0) { - exit(1); - } -#endif - /* init the bluetooth world */ if (foreach_device_config(DEV_BT, bt_parse)) exit(1); @@ -4225,6 +4219,17 @@ int main(int argc, char **argv, char **envp) exit(1); } + /* + * For compatible with Xen stubdom vTPM driver, make + * sure QEMU machine class is initialized and QEMU has + * registered Xen stubdom vTPM driver. + */ +#ifdef CONFIG_TPM + if (tpm_init() < 0) { + exit(1); + } +#endif + /* init generic devices */ if (qemu_opts_foreach(qemu_find_opts("device"), device_init_func, NULL, 1) != 0) exit(1); -- 1.8.3.2
next prev parent reply other threads:[~2015-03-10 17:16 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-03-10 12:14 [Qemu-devel] [PATCH v4 0/5] QEMU:Xen stubdom vTPM for HVM virtual machine Quan Xu 2015-03-10 12:14 ` [Qemu-devel] [PATCH v4 1/5] Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line options Quan Xu 2015-03-11 21:17 ` Eric Blake 2015-03-11 21:17 ` [Qemu-devel] " Eric Blake 2015-03-10 12:14 ` Quan Xu 2015-03-10 12:14 ` [Qemu-devel] [PATCH v4 2/5] Qemu-Xen-vTPM: Xen frontend driver infrastructure Quan Xu 2015-03-10 12:14 ` Quan Xu 2015-03-10 12:14 ` [Qemu-devel] [PATCH v4 3/5] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver Quan Xu 2015-03-10 12:14 ` Quan Xu 2015-03-18 18:59 ` [Qemu-devel] " Stefan Berger 2015-03-18 18:59 ` Stefan Berger 2015-03-10 12:14 ` [Qemu-devel] [PATCH v4 4/5] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backen Quan Xu 2015-03-10 12:14 ` Quan Xu 2015-03-18 19:17 ` [Qemu-devel] " Stefan Berger 2015-03-19 1:34 ` Xu, Quan 2015-03-19 1:34 ` Xu, Quan 2015-03-23 12:44 ` [Qemu-devel] " Xu, Quan 2015-03-23 20:06 ` Stefan Berger 2015-03-23 12:44 ` Xu, Quan 2015-03-18 19:17 ` Stefan Berger 2015-03-10 12:14 ` Quan Xu [this message] 2015-03-10 12:14 ` [PATCH v4 5/5] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init() Quan Xu 2015-03-20 11:26 ` [Qemu-devel] " Stefan Berger 2015-03-23 1:43 ` Xu, Quan 2015-03-23 1:43 ` Xu, Quan 2015-03-20 11:26 ` Stefan Berger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1425989673-2812-6-git-send-email-quan.xu@intel.com \ --to=quan.xu@intel.com \ --cc=aliguori@amazon.com \ --cc=armbru@redhat.com \ --cc=eblake@redhat.com \ --cc=kraxel@redhat.com \ --cc=lcapitulino@redhat.com \ --cc=meyering@redhat.com \ --cc=mjt@tls.msk.ru \ --cc=pbonzini@redhat.com \ --cc=qemu-devel@nongnu.org \ --cc=stefanb@linux.vnet.ibm.com \ --cc=stefano.stabellini@eu.citrix.com \ --cc=sw@weilnetz.de \ --cc=wei.liu2@citrix.com \ --cc=xen-devel@lists.xen.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.