Home
last modified time | relevance | path

Searched refs:vtpm (Results 1 – 25 of 25) sorted by relevance

/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl_vtpm.c24 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()
35 device->backend_devid = vtpm->devid; in libxl__device_from_vtpm()
85 vtpm->devid = devid; in libxl__vtpm_from_xenstore()
119 vtpminfo->devid = vtpm->devid; in libxl_device_vtpm_getinfo()
185 libxl_device_vtpm_init(vtpm); in libxl_devid_to_device_vtpm()
242 LIBXL_DEFINE_DEVICE_ADD(vtpm)
244 LIBXL_DEFINE_DEVICE_REMOVE(vtpm)
245 LIBXL_DEFINE_DEVICE_LIST(vtpm)
[all …]
A Dlibxl_utils.h76 libxl_uuid *uuid, libxl_device_vtpm *vtpm);
78 int devid, libxl_device_vtpm *vtpm);
A Dlibxl.h1917 int libxl_device_vtpm_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vtpm *vtpm,
1921 libxl_device_vtpm *vtpm,
1925 libxl_device_vtpm *vtpm,
1935 libxl_device_vtpm *vtpm, libxl_vtpminfo *vtpminfo)
/xen-4.10.0-shim-comet/tools/xl/
A Dxl_vtpm.c28 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 Dxl_parse.c1629 libxl_device_vtpm *vtpm; in parse_config_data() local
1634 vtpm = ARRAY_EXTEND_INIT(d_config->vtpms, in parse_config_data()
1647 vtpm->backend_domname = strdup(p2 + 1); in parse_config_data()
1650 if( libxl_uuid_from_string(&vtpm->uuid, p2 + 1) ) { in parse_config_data()
/xen-4.10.0-shim-comet/docs/misc/
A Dvtpm-platforms.txt34 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-4.10.0-shim-comet/stubdom/vtpmmgr/
A Dvtpm_disk.c144 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 Dvtpm_cmd_handler.c104 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 Dvtpm_disk.h227 int vtpm_sync(struct mem_group *group, struct mem_vtpm *vtpm);
230 int delete_vtpm(struct mem_group *group, struct mem_vtpm *vtpm);
A Ddisk_read.c231 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 Dvtpmmgr.h88 struct mem_vtpm *vtpm; member
A Dinit.c399 if (opq && opq->vtpm) in free_opaque()
400 opq->vtpm->flags &= ~VTPM_FLAG_OPEN; in free_opaque()
/xen-4.10.0-shim-comet/stubdom/
A Dconfigure.ac26 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 DMakefile225 patch -d $@ -p1 < vtpm-bufsize.patch
226 patch -d $@ -p1 < vtpm-locality.patch
228 patch -d $@ -p1 < vtpm-deepquote.patch
500 vtpm-minios-config.mk: $(CURDIR)/vtpm/minios.cfg
503 .PHONY: vtpm
504 vtpm: cross-polarssl cross-tpmemu vtpm-minios-config.mk target
568 .PHONY: vtpm-stubdom
569 vtpm-stubdom: mini-os-$(XEN_TARGET_ARCH)-vtpm vtpm
613 install-vtpm: vtpm-stubdom
646 uninstall-vtpm:
[all …]
A DCOPYING7 vtpm
10 Also see vtpm/COPYING
A Dconfigure1346 --enable-vtpm-stubdom Build and install vtpm-stubdom
2187 vtpm=y
2199 vtpm=n
3343 if test "x$vtpm" = "xy"; then :
3391 if test "x$vtpm" = "xn"; then :
3440 vtpm=n
3586 if test "x$vtpmmgr" = "x" && test "x$vtpm" = "xn"; then :
3595 if test "x$vtpm" = "xy" || test "x$vtpm" = "x"; then :
3598 vtpm=y
3608 vtpm=n
/xen-4.10.0-shim-comet/stubdom/vtpm/
A DMakefile14 TARGET=vtpm.a
15 OBJS=vtpm.o vtpm_cmd.o vtpmblk.o vtpm_pcrs.o
/xen-4.10.0-shim-comet/docs/man/
A Dxen-vtpm.pod.743 | vtpm-stubdom | ...
83 vtpm-stubdom.
85 =item vtpm-stubdom
88 one to one mapping between running vtpm-stubdom instances and
95 vtpm-stubdom uses this driver to communicate with
224 vtpm=["backend=domu-vtpm"]
243 see the following on the vtpm console:
249 # cat /sys/devices/vtpm-0/pubek
250 # cat /sys/devices/vtpm-0/pcrs
266 vtpm saving its state. You should see the vtpm key being encrypted and stored on
[all …]
A Dxen-vtpmmgr.pod.712 vtpmmgr-stubdom. See L<xen-vtpm(7)> for details on the vTPM subsystem as a
33 The manager accepts commands from the vtpm-stubdom domains via the mini-os TPM
203 =item 3. Attach the vTPM migration domain's vtpm/0 device to the old vtpmmgr
205 =item 4. Migration domain executes vtpmmgr_LoadHashKey on vtpm/0
209 =item 6. Attach the vTPM migration domain's vtpm/1 device to the new vtpmmgr
211 =item 7. Migration domain executes vtpmmgr_SaveHashKey on vtpm/1
300 | vtpm-stubdom | ...
340 vtpm-stubdom.
342 =item vtpm-stubdom
345 one to one mapping between running vtpm-stubdom instances and
[all …]
A Dxl.pod.1.in1421 =item B<vtpm-attach> I<domain-id> I<vtpm-device>
1423 Creates a new vtpm (virtual Trusted Platform Module) device in the domain
1424 specified by I<domain-id>. I<vtpm-device> describes the device to attach,
1425 using the same format as the B<vtpm> string in the domain config file.
1428 =item B<vtpm-detach> I<domain-id> I<devid|uuid>
1430 Removes the vtpm device from the domain specified by I<domain-id>.
1432 Platform Module device. You will need to run B<xl vtpm-list> to determine that
1433 number. Alternatively, the I<uuid> of the vtpm can be used to
1436 =item B<vtpm-list> I<domain-id>
A Dxl.cfg.pod.5.in629 =item B<vtpm=[ "VTPM_SPEC_STRING", "VTPM_SPEC_STRING", ...]>
632 provided to the guest. See L<xen-vtpm(7)> for more details.
/xen-4.10.0-shim-comet/
A DMAINTAINERS437 F: stubdom/vtpm/
439 F: docs/misc/vtpm-platforms.txt
A DREADME75 * cmake (if building vtpm stub domains)
A D.gitignore90 stubdom/vtpm/vtpm_manager.h
A DINSTALL158 --enable-vtpm-stubdom

Completed in 37 milliseconds