Searched refs:vnsm (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/hw/i386/ |
H A D | nitro_enclave.c | 79 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 D | virtio-nsm.c | 240 if (vnsm->pcrs[i].locked) { in handle_describe_nsm() 585 if (!vnsm->extend_pcr(vnsm, nsm_req->index, nsm_req->data, in handle_extend_pcr() 1188 if (vnsm->pcrs[i].locked) { in add_payload_to_cose() 1636 vnsm->pcrs[ind].locked = true; in lock_pcr() 1644 vnsm->max_pcrs = NSM_MAX_PCRS; in virtio_nsm_device_realize() 1646 if (vnsm->module_id == NULL) { in virtio_nsm_device_realize() 1649 vnsm->version_major = 1; in virtio_nsm_device_realize() 1650 vnsm->version_minor = 0; in virtio_nsm_device_realize() 1651 vnsm->version_patch = 0; in virtio_nsm_device_realize() 1652 vnsm->extend_pcr = extend_pcr; in virtio_nsm_device_realize() [all …]
|
H A D | virtio-nsm-pci.c | 33 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 D | virtio-nsm.h | 45 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 D | nitro_enclave.h | 45 VirtIONSM *vnsm; member
|