Skip to contentSkip to conversation

VTPM mini-os: vtpm-stubdom

PATCH In review Matthew Fioravante 1 participant 1 message Mar 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 10/12 VTPM mini-os: vtpm-stubdom

This patch adds the vtpm-stubdom mini-os domain to the stubdom directory.

To build it:
cd stubdom
make vtpm-stubdom

It uses the berlios tpm_emulator version 0.6.1 as a base and the paravirtualized tpm drivers to communicate with the guest and the vtpm manager domain.

An examples directory was added to studom/vtpm with 2 example config files to show how to use the vtpm domain.

The vtpm can use either vtpm_managerd running as a process in dom0 or vtpmmgrdom running as its own domain. You must change the backend parameter for the vtpm= entry in the vtpm config file to point to either dom0 or vtpmmgrdom. You must also give each vtpm a unique uuid.

When using vtpm-stubdom with vtpm_managerd in dom0, vtpm_managerd must be built and installed in stubdom mode. To do this:
cd tools/vtpm_manager
vi Rules.mk

Uncomment the line that says:
CFLAGS += -DVTPM_STUBDOM

make clean and then make && make install

Further more complete documentation will be forthcoming

Signed off by: Matthew Fioravante <[email protected]>

stubdom/vtpm/examples/myguest.cfg +5 -0
diff -Naur xen-unstable-trp-sdp-pristine/stubdom/vtpm/examples/myguest.cfg xen-unstable-trp-sdp/stubdom/vtpm/examples/myguest.cfg
@@ -0,0 +1,5 @@
+bootloader = pygrub
+memory = 192
+name = 'myguest'
+disk = ['file:/tmp/myguest.img,hda1,w']
+vtpm = ['backend=myvtpm']
stubdom/vtpm/examples/myvtpm.cfg +8 -0
diff -Naur xen-unstable-trp-sdp-pristine/stubdom/vtpm/examples/myvtpm.cfg xen-unstable-trp-sdp/stubdom/vtpm/examples/myvtpm.cfg
@@ -0,0 +1,8 @@
+kernel = '/boot/vtpm-stubdom.gz'
+memory = '8'
+name = 'vtpm'
+on_shutdown = 'destroy'
+on_crash = 'destroy'
+disk = ['file:/tmp/myvtpm.img,hda,w']
+extra = 'loglevel=info pvm clear'
+vtpm = ['backend=vtpmmgrdom,uuid=4209a551-9b79-4feb-ad4d-b4ff1c1bc355']
stubdom/vtpm/Makefile +53 -0

53 lines not on this page · raw message

stubdom/vtpm/vtpmblk.c +335 -0

335 lines not on this page · raw message

stubdom/vtpm/vtpmblk.h +54 -0

54 lines not on this page · raw message

stubdom/vtpm/vtpm.c +415 -0

415 lines not on this page · raw message

stubdom/vtpm/vtpm_cmd.c +217 -0

217 lines not on this page · raw message

stubdom/vtpm/vtpm_cmd.h +51 -0

51 lines not on this page · raw message

stubdom/vtpm/vtpm.h +66 -0

66 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel