Home
last modified time | relevance | path

Searched refs:vnsm (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/hw/i386/
H A Dnitro_enclave.c79 VirtIONSM *vnsm = VIRTIO_NSM(dev); in virtio_nsm_init() local
90 nems->vnsm = vnsm; in virtio_nsm_init()
117 memset(ne_state->vnsm->pcrs, 0, sizeof(ne_state->vnsm->pcrs)); in nitro_enclave_machine_reset()
120 ne_state->vnsm->extend_pcr(ne_state->vnsm, 0, ne_state->image_sha384, in nitro_enclave_machine_reset()
123 ne_state->vnsm->extend_pcr(ne_state->vnsm, 1, ne_state->bootstrap_sha384, in nitro_enclave_machine_reset()
126 ne_state->vnsm->extend_pcr(ne_state->vnsm, 2, ne_state->app_sha384, in nitro_enclave_machine_reset()
130 ne_state->vnsm->extend_pcr(ne_state->vnsm, 3, in nitro_enclave_machine_reset()
136 ne_state->vnsm->extend_pcr(ne_state->vnsm, 4, in nitro_enclave_machine_reset()
142 ne_state->vnsm->extend_pcr(ne_state->vnsm, 8, in nitro_enclave_machine_reset()
149 ne_state->vnsm->lock_pcr(ne_state->vnsm, i); in nitro_enclave_machine_reset()
/openbmc/qemu/hw/virtio/
H A Dvirtio-nsm.c137 static bool handle_get_random(VirtIONSM *vnsm, struct iovec *request, in handle_get_random() argument
208 static bool handle_describe_nsm(VirtIONSM *vnsm, struct iovec *request, in handle_describe_nsm() argument
226 if (!qemu_cbor_add_string_to_map(nested_map, "digest", vnsm->digest)) { in handle_describe_nsm()
230 if (!qemu_cbor_add_uint8_to_map(nested_map, "max_pcrs", vnsm->max_pcrs)) { in handle_describe_nsm()
235 vnsm->module_id)) { in handle_describe_nsm()
240 if (vnsm->pcrs[i].locked) { in handle_describe_nsm()
250 vnsm->version_major)) { in handle_describe_nsm()
255 vnsm->version_minor)) { in handle_describe_nsm()
260 vnsm->version_patch)) { in handle_describe_nsm()
370 static bool handle_describe_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_describe_pcr() argument
[all …]
H A Dvirtio-nsm-pci.c33 VirtIONsmPCI *vnsm = VIRTIO_NSM_PCI(vpci_dev); in virtio_nsm_pci_realize() local
34 DeviceState *vdev = DEVICE(&vnsm->vdev); in virtio_nsm_pci_realize()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-nsm.h45 bool (*extend_pcr)(VirtIONSM *vnsm, int ind, uint8_t *data, uint16_t len);
46 void (*lock_pcr)(VirtIONSM *vnsm, int ind);
/openbmc/qemu/include/hw/i386/
H A Dnitro_enclave.h45 VirtIONSM *vnsm; member