Lines Matching refs:nems

47 static void vhost_user_vsock_init(NitroEnclaveMachineState *nems)  in vhost_user_vsock_init()  argument
53 if (!nems->vsock) { in vhost_user_vsock_init()
65 Chardev *chardev = qemu_chr_find(nems->vsock); in vhost_user_vsock_init()
67 error_report("Failed to find chardev with id %s", nems->vsock); in vhost_user_vsock_init()
76 static void virtio_nsm_init(NitroEnclaveMachineState *nems) in virtio_nsm_init() argument
87 qdev_prop_set_string(dev, "module-id", nems->id); in virtio_nsm_init()
90 nems->vnsm = vnsm; in virtio_nsm_init()
93 static void nitro_enclave_devices_init(NitroEnclaveMachineState *nems) in nitro_enclave_devices_init() argument
95 vhost_user_vsock_init(nems); in nitro_enclave_devices_init()
96 virtio_nsm_init(nems); in nitro_enclave_devices_init()
157 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_machine_initfn() local
159 nems->id = g_strdup("i-234-enc5678"); in nitro_enclave_machine_initfn()
172 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(x86ms); in x86_load_eif() local
176 nems->image_sha384, nems->bootstrap_sha384, in x86_load_eif()
177 nems->app_sha384, nems->fingerprint_sha384, in x86_load_eif()
178 &(nems->signature_found), &err)) { in x86_load_eif()
235 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_get_vsock_chardev_id() local
237 return g_strdup(nems->vsock); in nitro_enclave_get_vsock_chardev_id()
243 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_set_vsock_chardev_id() local
245 g_free(nems->vsock); in nitro_enclave_set_vsock_chardev_id()
246 nems->vsock = g_strdup(value); in nitro_enclave_set_vsock_chardev_id()
251 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_get_id() local
253 return g_strdup(nems->id); in nitro_enclave_get_id()
259 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_set_id() local
261 g_free(nems->id); in nitro_enclave_set_id()
262 nems->id = g_strdup(value); in nitro_enclave_set_id()
267 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_get_parent_role() local
269 return g_strdup(nems->parent_role); in nitro_enclave_get_parent_role()
275 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_set_parent_role() local
277 g_free(nems->parent_role); in nitro_enclave_set_parent_role()
278 nems->parent_role = g_strdup(value); in nitro_enclave_set_parent_role()
283 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_get_parent_id() local
285 return g_strdup(nems->parent_id); in nitro_enclave_get_parent_id()
291 NitroEnclaveMachineState *nems = NITRO_ENCLAVE_MACHINE(obj); in nitro_enclave_set_parent_id() local
293 g_free(nems->parent_id); in nitro_enclave_set_parent_id()
294 nems->parent_id = g_strdup(value); in nitro_enclave_set_parent_id()