/xen/tools/libxl/ |
A D | libxl_vtpm.c | 24 if (libxl_uuid_is_nil(&vtpm->uuid)) { in libxl__device_vtpm_setdefault() 25 libxl_uuid_generate(&vtpm->uuid); in libxl__device_vtpm_setdefault() 27 rc = libxl__resolve_domid(gc, vtpm->backend_domname, &vtpm->backend_domid); in libxl__device_vtpm_setdefault() 69 vtpm->devid = devid; in libxl__vtpm_from_xenstore() 102 vtpminfo->devid = vtpm->devid; in libxl_device_vtpm_getinfo() 169 libxl_device_vtpm_init(vtpm); in libxl_devid_to_device_vtpm() 228 static LIBXL_DEFINE_DEVICES_ADD(vtpm) 230 LIBXL_DEFINE_DEVICE_ADD(vtpm) 231 LIBXL_DEFINE_DEVICE_REMOVE(vtpm) 232 LIBXL_DEFINE_DEVICE_LIST(vtpm) [all …]
|
A D | libxl_utils.h | 77 libxl_uuid *uuid, libxl_device_vtpm *vtpm); 79 int devid, libxl_device_vtpm *vtpm);
|
A D | libxl.h | 2159 int libxl_device_vtpm_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vtpm *vtpm, 2163 libxl_device_vtpm *vtpm, 2167 libxl_device_vtpm *vtpm, 2177 const libxl_device_vtpm *vtpm, libxl_vtpminfo *vtpminfo)
|
/xen/tools/xl/ |
A D | xl_vtpm.c | 28 libxl_device_vtpm vtpm; in main_vtpmattach() local 42 libxl_device_vtpm_init(&vtpm); in main_vtpmattach() 45 if(libxl_uuid_from_string(&(vtpm.uuid), oparg)) { in main_vtpmattach() 50 replace_string(&vtpm.backend_domname, oparg); in main_vtpmattach() 58 char* json = libxl_device_vtpm_to_json(ctx, &vtpm); in main_vtpmattach() 61 libxl_device_vtpm_dispose(&vtpm); in main_vtpmattach() 66 if (libxl_device_vtpm_add(ctx, domid, &vtpm, 0)) { in main_vtpmattach() 70 libxl_device_vtpm_dispose(&vtpm); in main_vtpmattach() 118 libxl_device_vtpm vtpm; in main_vtpmdetach() local 138 rc = libxl_device_vtpm_remove(ctx, domid, &vtpm, 0); in main_vtpmdetach() [all …]
|
A D | xl_parse.c | 2052 libxl_device_vtpm *vtpm; in parse_config_data() local 2057 vtpm = ARRAY_EXTEND_INIT(d_config->vtpms, in parse_config_data() 2070 vtpm->backend_domname = strdup(p2 + 1); in parse_config_data() 2073 if( libxl_uuid_from_string(&vtpm->uuid, p2 + 1) ) { in parse_config_data()
|
/xen/docs/misc/ |
A D | vtpm-platforms.txt | 34 The vtpm configuration files (vtpm-guest1.cfg, vtpm-guest2.cfg): 36 name="vtpm-guest1" 43 name="vtpm-guest2" 57 vtpm=["backend=vtpm-guest1"] 64 vtpm=["backend=vtpm-guest2"] 69 # xl create vtpm-guest1.cfg 106 # xl vtpm-attach vtpm-hw uuid=062b6416-ed46-492a-9e65-a2f92dc07f7f backend=vtpmmgr 107 # xl vtpm-attach vtpm-g1 uuid=e9aa9d0f-ece5-4b84-b129-93004ba61a5f backend=vtpmmgr 108 # xl vtpm-attach vtpm-g2 uuid=3fb2caf0-d305-4516-96c7-420618d98efb backend=vtpmmgr 110 # xl vtpm-attach guest1 uuid=e9aa9d0f-ece5-4b84-b129-93004ba61a5f backend=vtpm-g1 [all …]
|
/xen/stubdom/vtpmmgr/ |
A D | vtpm_disk.c | 144 int pgidx = vtpm->index_in_parent / VTPMS_PER_SECTOR; in find_mem_vtpm_page() 163 struct mem_vtpm *vtpm = calloc(1, sizeof(*vtpm)); in create_vtpm() local 178 page->vtpms[vtidx] = vtpm; in create_vtpm() 179 vtpm->index_in_parent = group->nr_vtpms; in create_vtpm() 180 vtpm->flags = 0; in create_vtpm() 184 memcpy(vtpm->uuid, uuid, 16); in create_vtpm() 185 *vtpmp = vtpm; in create_vtpm() 194 int vtidx = vtpm->index_in_parent % VTPMS_PER_SECTOR; in delete_vtpm() 196 if (vtpm->flags & VTPM_FLAG_OPEN) in delete_vtpm() 199 last->index_in_parent = vtpm->index_in_parent; in delete_vtpm() [all …]
|
A D | vtpm_cmd_handler.c | 104 if (opq->vtpm) in find_vtpm_verified() 113 opq->vtpm = NULL; in find_vtpm_verified() 176 vtpm_sync(opq->group, opq->vtpm); in vtpmmgr_SaveHashKey() 198 memcpy(buf, opq->vtpm->data, 64); in vtpmmgr_LoadHashKey() 292 if (!opq->vtpm) { in vtpmmgr_GetQuote() 715 struct mem_vtpm *vtpm; in vtpmmgr_VtpmNew() local 733 memset(vtpm->data, 0, 64); in vtpmmgr_VtpmNew() 734 vtpm_sync(group, vtpm); in vtpmmgr_VtpmNew() 745 struct mem_vtpm *vtpm; in vtpmmgr_VtpmDel() local 761 delete_vtpm(group, vtpm); in vtpmmgr_VtpmDel() [all …]
|
A D | vtpm_disk.h | 227 int vtpm_sync(struct mem_group *group, struct mem_vtpm *vtpm); 230 int delete_vtpm(struct mem_group *group, struct mem_vtpm *vtpm);
|
A D | disk_read.c | 231 struct mem_vtpm *vtpm = calloc(1, sizeof(*vtpm)); in load_verify_vtpm_page() local 232 dst->vtpms[i] = vtpm; in load_verify_vtpm_page() 233 memcpy(vtpm->uuid, pt.header[i].uuid, 16); in load_verify_vtpm_page() 234 memcpy(vtpm->data, pt.data[i].data, 64); in load_verify_vtpm_page() 235 vtpm->flags = be32_native(pt.header[i].flags); in load_verify_vtpm_page() 236 vtpm->index_in_parent = i + base; in load_verify_vtpm_page()
|
A D | vtpmmgr.h | 88 struct mem_vtpm *vtpm; member
|
A D | init.c | 399 if (opq && opq->vtpm) in free_opaque() 400 opq->vtpm->flags &= ~VTPM_FLAG_OPEN; in free_opaque()
|
/xen/stubdom/ |
A D | vtpm_extern.patch | 1 …vtpm/vtpm.a(vtpm_cmd.o):(.bss+0x28): multiple definition of `tpm_malloc'; /home/abuild/rpmbuild/BU…
|
A D | configure.ac | 26 AX_STUBDOM_CONDITIONAL([vtpm-stubdom], [vtpm]) 60 AX_DEPENDS_PATH_PROG([vtpm], [CMAKE], [cmake]) 74 AX_STUBDOM_AUTO_DEPENDS([vtpmmgr], [vtpm]) 77 AX_STUBDOM_CONDITIONAL_FINISH([vtpm-stubdom], [vtpm])
|
A D | Makefile | 226 patch -d $@ -p1 < vtpm-bufsize.patch 227 patch -d $@ -p1 < vtpm-locality.patch 229 patch -d $@ -p1 < vtpm-deepquote.patch 503 vtpm-minios-config.mk: $(CURDIR)/vtpm/minios.cfg 506 .PHONY: vtpm 507 vtpm: cross-polarssl cross-tpmemu vtpm-minios-config.mk target 571 .PHONY: vtpm-stubdom 572 vtpm-stubdom: mini-os-$(XEN_TARGET_ARCH)-vtpm vtpm 616 install-vtpm: vtpm-stubdom 649 uninstall-vtpm: [all …]
|
A D | COPYING | 7 vtpm 10 Also see vtpm/COPYING
|
A D | configure | 1347 --enable-vtpm-stubdom Build and install vtpm-stubdom 2188 vtpm=y 2200 vtpm=n 3387 if test "x$vtpm" = "xy"; then : 3435 if test "x$vtpm" = "xn"; then : 3484 vtpm=n 3630 if test "x$vtpmmgr" = "x" && test "x$vtpm" = "xn"; then : 3639 if test "x$vtpm" = "xy" || test "x$vtpm" = "x"; then : 3642 vtpm=y 3652 vtpm=n
|
/xen/docs/man/ |
A D | xen-vtpm.7.pod | 3 xen-vtpm - Xen virtual Trusted Platform Module (vTPM) subsystem 49 | vtpm-stubdom | ... 89 vtpm-stubdom. 91 =item vtpm-stubdom 101 vtpm-stubdom uses this driver to communicate with 230 vtpm=["backend=domu-vtpm"] 249 see the following on the vtpm console: 255 # cat /sys/devices/vtpm-0/pubek 256 # cat /sys/devices/vtpm-0/pcrs 272 vtpm saving its state. You should see the vtpm key being encrypted and stored on [all …]
|
A D | xen-vtpmmgr.7.pod | 16 vtpmmgr-stubdom. See L<xen-vtpm(7)> for details on the vTPM subsystem as a 37 The manager accepts commands from the vtpm-stubdom domains via the mini-os TPM 207 =item 3. Attach the vTPM migration domain's vtpm/0 device to the old vtpmmgr 209 =item 4. Migration domain executes vtpmmgr_LoadHashKey on vtpm/0 213 =item 6. Attach the vTPM migration domain's vtpm/1 device to the new vtpmmgr 215 =item 7. Migration domain executes vtpmmgr_SaveHashKey on vtpm/1 304 | vtpm-stubdom | ... 344 vtpm-stubdom. 346 =item vtpm-stubdom 349 one to one mapping between running vtpm-stubdom instances and [all …]
|
A D | xl.1.pod.in | 1479 =item B<vtpm-attach> I<domain-id> I<vtpm-device> 1481 Creates a new vtpm (virtual Trusted Platform Module) device in the domain 1482 specified by I<domain-id>. I<vtpm-device> describes the device to attach, 1483 using the same format as the B<vtpm> string in the domain config file. 1486 =item B<vtpm-detach> I<domain-id> I<devid|uuid> 1488 Removes the vtpm device from the domain specified by I<domain-id>. 1490 Platform Module device. You will need to run B<xl vtpm-list> to determine that 1491 number. Alternatively, the I<uuid> of the vtpm can be used to 1494 =item B<vtpm-list> I<domain-id>
|
/xen/stubdom/vtpm/ |
A D | Makefile | 14 TARGET=vtpm.a 15 OBJS=vtpm.o vtpm_cmd.o vtpmblk.o vtpm_pcrs.o
|
/xen/ |
A D | README | 75 * cmake (if building vtpm stub domains)
|
A D | MAINTAINERS | 516 F: stubdom/vtpm/ 518 F: docs/misc/vtpm-platforms.txt
|
A D | .gitignore | 93 stubdom/vtpm/vtpm_manager.h
|
A D | INSTALL | 174 --enable-vtpm-stubdom
|