SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine
PATCH 1/1 SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine
This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series.
========================
*INTRODUCTION*
========================
The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secure separation guaranteed by the hypervisor.
The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver.
Quan Xu (1):
SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine
Makefile | 2 +- src/post.c | 3 + src/tpm.c | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tpm.h | 141 ++++++++++++++++++++++++++++ 4 files changed, 454 insertions(+), 1 deletion(-) create mode 100644 src/tpm.c create mode 100644 src/tpm.h
Signature · 1 line
1.8.1.2
PATCH 1/1 SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine
--- Makefile | 2 +- src/post.c | 3 + src/tpm.c | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tpm.h | 141 ++++++++++++++++++++++++++++ 4 files changed, 454 insertions(+), 1 deletion(-) create mode 100644 src/tpm.c create mode 100644 src/tpm.h
Makefile +1 -1
@@ -36,7 +36,7 @@ SRCBOTH=misc.c stacks.c output.c string.c block.c cdrom.c disk.c mouse.c kbd.c \ hw/virtio-ring.c hw/virtio-pci.c hw/virtio-blk.c hw/virtio-scsi.c \ hw/lsi-scsi.c hw/esp-scsi.c hw/megasas.c SRC16=$(SRCBOTH) -SRC32FLAT=$(SRCBOTH) post.c memmap.c malloc.c romfile.c x86.c optionroms.c \ +SRC32FLAT=$(SRCBOTH) post.c memmap.c malloc.c romfile.c tpm.c x86.c optionroms.c \ pmm.c font.c boot.c bootsplash.c jpeg.c bmp.c \ hw/ahci.c hw/pvscsi.c hw/usb-xhci.c hw/usb-hub.c \ fw/coreboot.c fw/lzmadecode.c fw/csm.c fw/biostables.c \
src/post.c +3 -0
@@ -28,6 +28,7 @@#include "output.h" // dprintf #include "string.h" // memset #include "util.h" // kbd_init +#include "tpm.h" //vtpm4hvm_setup /****************************************************************
@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup (); } static void
src/tpm.c new file +309 -0
309 lines not on this page · raw message
src/tpm.h new file +141 -0
141 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 1/1 SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine
In reply to Quan Xu--- Makefile | 2 +- src/post.c | 3 + src/tpm.c | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tpm.h | 141 ++++++++++++++++++++++++++++ 4 files changed, 454 insertions(+), 1 deletion(-) create mode 100644 src/tpm.c create mode 100644 src/tpm.h
Makefile +1 -1
@@ -36,7 +36,7 @@ SRCBOTH=misc.c stacks.c output.c string.c block.c cdrom.c disk.c mouse.c kbd.c \ hw/virtio-ring.c hw/virtio-pci.c hw/virtio-blk.c hw/virtio-scsi.c \ hw/lsi-scsi.c hw/esp-scsi.c hw/megasas.c SRC16=$(SRCBOTH) -SRC32FLAT=$(SRCBOTH) post.c memmap.c malloc.c romfile.c x86.c optionroms.c \ +SRC32FLAT=$(SRCBOTH) post.c memmap.c malloc.c romfile.c tpm.c x86.c optionroms.c \ pmm.c font.c boot.c bootsplash.c jpeg.c bmp.c \ hw/ahci.c hw/pvscsi.c hw/usb-xhci.c hw/usb-hub.c \ fw/coreboot.c fw/lzmadecode.c fw/csm.c fw/biostables.c \
src/post.c +3 -0
@@ -28,6 +28,7 @@#include "output.h" // dprintf #include "string.h" // memset #include "util.h" // kbd_init +#include "tpm.h" //vtpm4hvm_setup /****************************************************************
@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup (); } static void
src/tpm.c new file +309 -0
309 lines not on this page · raw message
src/tpm.h new file +141 -0
141 lines not on this page · raw message
Signature · 1 line
1.8.1.2
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();
Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a Kconfig option which enables TPM support.
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();
Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a Kconfig option which enables TPM support.
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Quoted 23 lines
-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, March 19, 2015 8:57 PM
To: Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machinesrc/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 6 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Thanks for your review. Make sense.
Quan
Quoted 23 lines
-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, March 19, 2015 8:57 PM
To: Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machinesrc/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 6 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Thanks for your review. Make sense.
Quan
Quoted 26 lines · Quan
Quoted 26 lines
-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, March 19, 2015 8:57 PM
To: Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machinesrc/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Quoted 4 lines
Quoted 1 line
Ian.
Thanks for your review. Make sense.
Quan
From previously posted patches you should be able to take 1/8 with the driver:
http://www.seabios.org/pipermail/seabios/2014-July/008179.html
2/8 added ACPI support, but this is not necessary; it contained the probing parts, which could be merged into 1.
3/8 was doing TPM initialization, so that should be recyclable as well: http://www.seabios.org/pipermail/seabios/2014-July/008180.html
I have a set of patches that removes the ACPI part in 2/8, though didn't post it.
Stefan
Quoted 26 lines · Quan
Quoted 26 lines
-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, March 19, 2015 8:57 PM
To: Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machinesrc/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Quoted 4 lines
Quoted 1 line
Ian.
Thanks for your review. Make sense.
Quan
From previously posted patches you should be able to take 1/8 with the driver:
http://www.seabios.org/pipermail/seabios/2014-July/008179.html
2/8 added ACPI support, but this is not necessary; it contained the probing parts, which could be merged into 1.
3/8 was doing TPM initialization, so that should be recyclable as well: http://www.seabios.org/pipermail/seabios/2014-July/008180.html
I have a set of patches that removes the ACPI part in 2/8, though didn't post it.
Stefan
Quoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a Kconfig option, so it doesn't fill up the 128k ROM.
Stefan
Quoted 8 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Quoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a Kconfig option, so it doesn't fill up the 128k ROM.
Stefan
Quoted 8 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Quoted 23 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 5 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn't fill up the 128k ROM.Stefan
Agree, I will do it ASAP.
Quan
Quoted 8 lines
Quoted 8 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Quoted 23 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 5 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn't fill up the 128k ROM.Stefan
Agree, I will do it ASAP.
Quan
Quoted 8 lines
Quoted 8 lines
And following that train of thought I think you could reasonable drop "4hvm" from the name. And possibly even the leading "v", since I suppose seabios shouldn't really care if the tpm is emulated or real so long as it looks like a real tpm.
Ian.
Quoted 21 lines · Quan
Quoted 21 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 6 lines
Quoted 5 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn't fill up the 128k ROM.Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Quoted 21 lines · Quan
Quoted 21 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.
Quoted 6 lines
Quoted 5 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn't fill up the 128k ROM.Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Quoted 41 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 21 lines · Quan
Quoted 21 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 2 lines
Quoted 2 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 4 lines
Quoted 3 lines
Stefan
Agree, I will do it ASAP.
Quoted 8 lines
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
Quan
Quoted 41 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 21 lines · Quan
Quoted 21 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 2 lines
Quoted 2 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 4 lines
Quoted 3 lines
Stefan
Agree, I will do it ASAP.
Quoted 8 lines
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
Quan
Quoted 43 lines · Quan
Quoted 43 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 2 lines
Quoted 2 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Quoted 4 lines
Quoted 2 lines
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Quoted 43 lines · Quan
Quoted 43 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
src/post.c device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
src/post.c +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void)esp_scsi_setup ();megasas_setup ();pvscsi_setup (); +if (runningOnXen ()) +vtpm4hvm_setup ();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 2 lines
Quoted 2 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Quoted 4 lines
Quoted 2 lines
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Quoted 58 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 46 lines · Quan
Quoted 46 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Quoted 8 lines
Quoted 2 lines
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch,
I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is blue screens(Linux guest virtual machines are working). It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest VM.
CCed Jan/Wei.
Quan
Quoted 58 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 46 lines · Quan
Quoted 46 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Quoted 8 lines
Quoted 2 lines
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch,
I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is blue screens(Linux guest virtual machines are working). It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest VM.
CCed Jan/Wei.
Quan
Quoted 60 lines · Quan
Quoted 60 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 43 lines · Quan
Quoted 43 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Quoted 4 lines
Quoted 2 lines
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
Quoted 7 lines
Quoted 3 lines
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch,
I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is blue screens(Linux guest virtual machines are working). It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest VM.
Can you be a bit more specific as to what gets it to work or which modifications you have to make in SeaBIOS to make it work?
Stefan
Quoted 60 lines · Quan
Quoted 60 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 43 lines · Quan
Quoted 43 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 3 lines
Quoted 2 lines
Stefan
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Quoted 4 lines
Quoted 2 lines
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
I put it here now:
Quoted 7 lines
Quoted 3 lines
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch,
I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is blue screens(Linux guest virtual machines are working). It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest VM.
Can you be a bit more specific as to what gets it to work or which modifications you have to make in SeaBIOS to make it work?
Stefan
Quoted 79 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 11:22 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Jan Beulich; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 58 lines · Quan
Quoted 58 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 47 lines · Quan
Quoted 36 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 2 lines
Quoted 2 lines
Stefan
Quoted 9 lines
Quoted 1 line
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
Quoted 8 lines
Quoted 5 lines
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch, I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is
Quoted 8 lines
blue screens(Linux guest virtual machines are working).
Quoted 1 line
It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest
VM.
Can you be a bit more specific as to what gets it to work or which modifications you have to make in SeaBIOS to make it work?
I put it here: https://github.com/virt2x/pseab2
It is my previous version of seabios to make it work for Linux guest virtual machines. 6d256386e823048cdbf23cf3e707f42cfd20a38b is my patch.
It based on:
[PATCH 1/2] Add an implementation of a TPM TIS driver
[PATCH 2/2] Provide ACPI SSDT table for TPM device
Maybe it was Xen bios tables issues. I deleted it in my previous patch.
[...]
- if (usingXen()) {
- xen_copy_biostables();
- return;
- }
-
[...]
Thanks, I look forward to workingwith you for vTPM/IMA ... .etc.
Quan
Quoted 1 line
Stefan
Quoted 79 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 11:22 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Jan Beulich; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 58 lines · Quan
Quoted 58 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Tuesday, March 24, 2015 4:01 AM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 47 lines · Quan
Quoted 36 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Monday, March 23, 2015 6:57 PM
To: Xu, Quan; Ian Campbell
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 20 lines · Quan
Quoted 20 lines
-----Original Message-----
From: Stefan Berger [mailto:[email protected]]
Sent: Friday, March 20, 2015 7:44 PM
To: Ian Campbell; Xu, Quan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 10 lines · Ian Campbell
Review device_hardware_setup(void) · line 156
Quoted 6 lines · Quan Xu
(quoted diff) +2
-0@@ -151,6 +152,8 @@ device_hardware_setup(void) esp_scsi_setup(); megasas_setup(); pvscsi_setup(); + if (runningOnXen()) + vtpm4hvm_setup();Is there anything which is actually Xen specific about the driver in tpm.[ch]? Would it be better to just probe for it, perhaps gates by a
Kconfigoption which enables TPM support.Quoted 3 lines
Quoted 3 lines
I also think the probing should be done. That code can also be recycled from what I posted earlier. It's gated by a
Kconfigoption, so it doesn'tfill up the 128k ROM.
Quoted 2 lines
Quoted 2 lines
Stefan
Quoted 9 lines
Quoted 1 line
Agree, I will do it ASAP.
I reposted v9 of my series of patches. I will probably post v10 today. Please try that one then since these patches should cover Xen, QEMU (using a driver that only I can test at the moment), and to some extent bare metal system.
Stefan
Great! Could you also archive v10 to your github? then I can also test it and go through these source code.
Quoted 8 lines
Quoted 5 lines
I put it here now:
https://github.com/stefanberger/seabios-tpm
Stefan
Thanks.
MS windows guest VM are maybe tricky issues. In my early-stage SeaBios patch, I deal with TPM TCPA and SSDT in SeaBios, but MS windows guest VM is
Quoted 8 lines
blue screens(Linux guest virtual machines are working).
Quoted 1 line
It works when I deal with TPM TCPA and SSDT in hvmloader for Windows guest
VM.
Can you be a bit more specific as to what gets it to work or which modifications you have to make in SeaBIOS to make it work?
I put it here: https://github.com/virt2x/pseab2
It is my previous version of seabios to make it work for Linux guest virtual machines. 6d256386e823048cdbf23cf3e707f42cfd20a38b is my patch.
It based on:
[PATCH 1/2] Add an implementation of a TPM TIS driver
[PATCH 2/2] Provide ACPI SSDT table for TPM device
Maybe it was Xen bios tables issues. I deleted it in my previous patch.
[...]
- if (usingXen()) {
- xen_copy_biostables();
- return;
- }
-
[...]
Thanks, I look forward to workingwith you for vTPM/IMA ... .etc.
Quan
Quoted 1 line
Stefan
Quoted 13 lines · Quan Xu
This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series.
========================
*INTRODUCTION*
========================
The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secure separation guaranteed by the hypervisor.
Quoted 3 lines
The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver.
Thanks. Does this seabios patch require additional seabios patches before it is useful? Does it depend on upstream patches in Xen/QEMU that are not yet committed?
-Kevin
Quoted 13 lines · Quan Xu
This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series.
========================
*INTRODUCTION*
========================
The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secure separation guaranteed by the hypervisor.
Quoted 3 lines
The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver.
Thanks. Does this seabios patch require additional seabios patches before it is useful? Does it depend on upstream patches in Xen/QEMU that are not yet committed?
-Kevin
Quoted 30 lines
-----Original Message-----
From: Kevin O'Connor [mailto:[email protected]]
Sent: Thursday, March 12, 2015 3:49 AM
To: Xu, Quan; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 12 lines · Quan Xu
This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series.
========================
*INTRODUCTION*
========================
The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secureseparation guaranteed by the hypervisor.
Quoted 4 lines
The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver.
Quoted 5 lines
Thanks. Does this seabios patch require additional seabios patches before it is useful? Does it depend on upstream patches in Xen/QEMU that are not yet committed?
-Kevin
Kevin,
Thanks for your reply.
It doesn't require additional seabios patches before it is useful. These patches
Should work with:
[PATCH v3 0/7] vTPM: Xen stubdom vTPM for HVM virtual machine --(Xen patch)
[PATCH v4 0/5] QEMU:Xen stubdom vTPM for HVM virtual machine --(Qemu patch)
I have committed but not upstream. I will forward them to you at next thread.
Thanks
Quoted 30 lines
-----Original Message-----
From: Kevin O'Connor [mailto:[email protected]]
Sent: Thursday, March 12, 2015 3:49 AM
To: Xu, Quan; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machineQuoted 12 lines · Quan Xu
This patch series are only the SeaBios part to enable stubdom vTPM for HVM virtual machine. It will work with Qemu patch series and Xen patch series.
========================
*INTRODUCTION*
========================
The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virtual machine gets its own unique, emulated, software TPM. Each major component of vTPM is implemented as a stubdom, providing secureseparation guaranteed by the hypervisor.
Quoted 4 lines
The vTPM stubdom is a Xen mini-OS domain that emulates a TPM for the virtual machine to use. It is a small wrapper around the Berlios TPM emulator. TPM commands are passed from mini-os TPM backend driver.
Quoted 5 lines
Thanks. Does this seabios patch require additional seabios patches before it is useful? Does it depend on upstream patches in Xen/QEMU that are not yet committed?
-Kevin
Kevin,
Thanks for your reply.
It doesn't require additional seabios patches before it is useful. These patches
Should work with:
[PATCH v3 0/7] vTPM: Xen stubdom vTPM for HVM virtual machine --(Xen patch)
[PATCH v4 0/5] QEMU:Xen stubdom vTPM for HVM virtual machine --(Qemu patch)
I have committed but not upstream. I will forward them to you at next thread.
Thanks