Skip to content

VTPM mini-os

Matthew Fioravante xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 of 12 patches 19 repliesIn review

11 of 12 patches are in this archive. The cover letter announces 12.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12VTPM mini-os: mmio= option for domain config files to pass iomem regionstools/python/xen/xend/XendDevices.py tools/python/xen/xend/server/mmioif.py tools/python/xen/xm/create.py+132 -10 replies
2/12VTPM mini-os: posix IO layer for blkfront in mini-osextras/mini-os/blkfront.c extras/mini-os/include/blkfront.h extras/mini-os/lib/sys.c+157 -25 replies
3/12VTPM mini-os: Add ioread() and iowrite() functions to mini-osextras/mini-os/arch/ia64/iorw.c extras/mini-os/arch/x86/iorw.c extras/mini-os/include/iorw.h+55 -03 replies
4/12VTPM mini-os: Mini-os machine specific headersextras/mini-os/include/byteorder.h extras/mini-os/include/byteswap.h extras/mini-os/include/endian.h +5 more+174 -256 replies
5/12VTPM mini-os: mfn_is_ram check disableextras/mini-os/arch/x86/mm.c+2 -01 reply
7/12VTPM mini-os: vtpm_manager bug fixes and changestools/vtpm_manager/Makefile tools/vtpm_manager/README tools/vtpm_manager/Rules.mk +43 more+1671 -4120 replies
8/12VTPM mini-os: vtpm hotplug fixestools/hotplug/Linux/vtpm tools/hotplug/Linux/vtpm-common.sh tools/hotplug/Linux/vtpm-delete +2 more+54 -510 replies
9/12VTPM mini-os: New stubdom applicationsstubdom/Makefile stubdom/openssl.patch stubdom/polarssl.patch +1 more+1181 -01 reply
10/12VTPM mini-os: vtpm-stubdomstubdom/vtpm/Makefile stubdom/vtpm/examples/myguest.cfg stubdom/vtpm/examples/myvtpm.cfg +6 more+1204 -00 replies
11/12VTPM mini-os: vtpmmgrdomstubdom/vtpmmgr/Makefile stubdom/vtpmmgr/vtpm_cmd_handler.c stubdom/vtpmmgr/vtpm_cmd_handler.h +4 more+2229 -00 replies
12/12VTPM mini-os: Stubdom makefile addtions for vtpm-stubdom and vtpmmgrdomstubdom/Makefile+31 -11 reply

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchSamuel Thibault
1/12
2/12
3/12
4/12
5/12A-b
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/12] VTPM mini-os: TPM device drivers for mini-os

This patch adds 3 new drivers to mini-os

tpmfront: Paravirtualized tpm driver that can speak to mini-os tpmback and linux tpmbk
tpmback: Paravirtualized tpm backend driver that can speak to mini-os tpmfront and linux tpm_xenu
tpm_tis: Hardware tpm driver. Should work with any TPM device compliant with the 1.2 spec. Requires io memory passthrough.

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

extras/mini-os/include/lib.h +13 -0
diff -Naur xen-unstable-trp-sdp-pristine/extras/mini-os/include/lib.h xen-unstable-trp-sdp/extras/mini-os/include/lib.h
@@ -146,6 +146,8 @@
     FTYPE_FB,
     FTYPE_MEM,
     FTYPE_SAVEFILE,
+    FTYPE_TPMFRONT,
+    FTYPE_TPM_TIS,
 };
 
 #define MAX_EVTCHN_PORTS 16
@@ -177,6 +179,7 @@
 	} tap;
 	struct {
 	    struct blkfront_dev *dev;
+	    off_t offset;
 	} blk;
 	struct {
 	    struct kbdfront_dev *dev;
@@ -187,6 +190,16 @@
 	struct {
 	    struct consfront_dev *dev;
 	} cons;
+	struct {
+	   struct tpmfront_dev *dev;
+	   int respgot;
+	   off_t offset;
+	} tpmfront;
+	struct {
+	   struct tpm_chip *dev;
+	   int respgot;
+	   off_t offset;
+	} tpm_tis;
         struct {
             /* To each xenbus FD is associated a queue of watch events for this
              * FD.  */
extras/mini-os/include/tpmback.h +109 -0

109 lines not on this page · raw message

extras/mini-os/include/tpmfront.h +107 -0

107 lines not on this page · raw message

extras/mini-os/include/tpm_tis.h +75 -0

75 lines not on this page · raw message

extras/mini-os/Makefile +28 -5
diff -Naur xen-unstable-trp-sdp-pristine/extras/mini-os/Makefile xen-unstable-trp-sdp/extras/mini-os/Makefile
@@ -79,13 +79,36 @@
 OBJS := $(filter-out $(OBJ_DIR)/lwip%.o $(LWO), $(OBJS))
 
 ifeq ($(libc),y)
-APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(XEN_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
-APP_LDLIBS += -lpci
-APP_LDLIBS += -lz
-APP_LDLIBS += -lm
-LDLIBS += -lc
+   APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(XEN_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
+   APP_LDLIBS += -lpci
+   APP_LDLIBS += -lz
+   APP_LDLIBS += -lm
+   LDLIBS += -lc
 endif
 
+ifeq ($(vtpm),y)
+   APP_LDLIBS := $(filter-out -lpci, $(APP_LDLIBS))
+   APP_LDLIBS += -lgmp
+   #FIXME: Need to remove unneeded drivers from vtpm
+   #OBJS := $(filter-out $(OBJ_DIR)/fs-front.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/daytime.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/pcifront.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/netfront.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/fbfront.o, $(OBJS))
+endif
+
+ifeq ($(vtpmmgr),y)
+   APP_LDLIBS := $(filter-out -lpci, $(APP_LDLIBS))
+   APP_LDLIBS := -lvtsp -ltcpaCrypto -lTCS -lTCGUtils -lcrypto $(APP_LDLIBS)
+   #FIXME: Need to remove unneeded drivers from vtpmmgr
+   #OBJS := $(filter-out $(OBJ_DIR)/fs-front.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/daytime.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/pcifront.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/fbfront.o, $(OBJS))
+   #OBJS := $(filter-out $(OBJ_DIR)/netfront.o, $(OBJS))
+endif
+
+
 ifneq ($(APP_OBJS)-$(lwip),-y)
 OBJS := $(filter-out $(OBJ_DIR)/daytime.o, $(OBJS))
 endif
extras/mini-os/tpmback.c +1128 -0

1,128 lines not on this page · raw message

extras/mini-os/tpmfront.c +619 -0

619 lines not on this page · raw message

extras/mini-os/tpm_tis.c +1368 -0

890 lines not on this page · raw message

extras/mini-os/lib/sys.c +24 -0
diff -Naur xen-unstable-trp-sdp-pristine/extras/mini-os/lib/sys.c xen-unstable-trp-sdp/extras/mini-os/lib/sys.c

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

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

Part of the diff is not shown here. View the raw message.