Skip to contentSkip to conversation

SeaBios/vTPM: Enable Xen stubdom vTPM for HVM virtual machine

PATCH In review Quan Xu 4 participants 29 messages Mar 10, 2015 – Mar 25, 2015 Kbuild

lore
Share & tools
lore

Quan Xu

author
#0 lore raw

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
author
#1 lore raw

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
index eecb8a1..945e997 100644
@@ -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
index 0fdd28e..8cb1abd 100644
@@ -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
author
#2 lore raw

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
index eecb8a1..945e997 100644
@@ -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
index 0fdd28e..8cb1abd 100644
@@ -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
#3 lore raw

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.

#4 lore raw
In reply to Quan Xu

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.

author
#5 lore raw
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 machine

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.

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

author
#6 lore raw
In reply to Ian Campbell
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 machine

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.

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

#7 lore raw
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 machine

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.

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

#8 lore raw
In reply to Xu, 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 machine

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.

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

#9 lore raw
In reply to Ian Campbell
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 Kconfig option 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.

#10 lore raw
In reply to Ian Campbell
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 Kconfig option 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.

author
#11 lore raw
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 machine

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 Kconfig option 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 Kconfig option, 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.

author
#12 lore raw
In reply to Stefan Berger
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 machine

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 Kconfig option 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 Kconfig option, 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.

#13 lore raw
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 machine

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 Kconfig option 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 Kconfig option, 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

#14 lore raw
In reply to Xu, Quan
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 machine

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 Kconfig option 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 Kconfig option, 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

author
#15 lore raw
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 machine

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 machine

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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

author
#16 lore raw
In reply to Stefan Berger
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 machine

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 machine

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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

#17 lore raw
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 machine

Quoted 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 machine

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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

#18 lore raw
In reply to Xu, 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 machine

Quoted 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 machine

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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

author
#19 lore raw
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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

author
#20 lore raw
In reply to Stefan Berger
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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

#21 lore raw
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 machine

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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

#22 lore raw
In reply to Xu, 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 machine

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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

author
#23 lore raw
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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

author
#24 lore raw
In reply to Stefan Berger
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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 machine

Quoted 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 Kconfig option 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 Kconfig option, so it doesn't

fill 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

#25 lore raw
In reply to Quan Xu
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

#26 lore raw
In reply to Quan Xu
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

author
#27 lore raw
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 machine

Quoted 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 secure

separation 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

author
#28 lore raw
In reply to Kevin O'Connor
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 machine

Quoted 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 secure

separation 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