Lines Matching refs:params
250 struct kvm_sev_launch_start params; in sev_launch_start() local
258 if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_start()
266 if (params.dh_uaddr) { in sev_launch_start()
267 dh_blob = psp_copy_user_blob(params.dh_uaddr, params.dh_len); in sev_launch_start()
274 start->dh_cert_len = params.dh_len; in sev_launch_start()
278 if (params.session_uaddr) { in sev_launch_start()
279 session_blob = psp_copy_user_blob(params.session_uaddr, params.session_len); in sev_launch_start()
286 start->session_len = params.session_len; in sev_launch_start()
289 start->handle = params.handle; in sev_launch_start()
290 start->policy = params.policy; in sev_launch_start()
305 params.handle = start->handle; in sev_launch_start()
306 if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) { in sev_launch_start()
438 struct kvm_sev_launch_update_data params; in sev_launch_update_data() local
446 if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_update_data()
453 vaddr = params.uaddr; in sev_launch_update_data()
454 size = params.len; in sev_launch_update_data()
513 struct kvm_sev_launch_measure params; in sev_launch_measure() local
521 if (copy_from_user(¶ms, measure, sizeof(params))) in sev_launch_measure()
529 if (!params.len) in sev_launch_measure()
532 p = (void __user *)(uintptr_t)params.uaddr; in sev_launch_measure()
534 if (params.len > SEV_FW_BLOB_MAX_SIZE) { in sev_launch_measure()
540 blob = kzalloc(params.len, GFP_KERNEL_ACCOUNT); in sev_launch_measure()
545 data->len = params.len; in sev_launch_measure()
555 if (!params.len) in sev_launch_measure()
562 if (copy_to_user(p, blob, params.len)) in sev_launch_measure()
567 params.len = data->len; in sev_launch_measure()
568 if (copy_to_user(measure, ¶ms, sizeof(params))) in sev_launch_measure()
600 struct kvm_sev_guest_status params; in sev_guest_status() local
616 params.policy = data->policy; in sev_guest_status()
617 params.state = data->state; in sev_guest_status()
618 params.handle = data->handle; in sev_guest_status()
620 if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) in sev_guest_status()
869 struct kvm_sev_launch_secret params; in sev_launch_secret() local
878 if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_secret()
881 pages = sev_pin_memory(kvm, params.guest_uaddr, params.guest_len, &n, 1); in sev_launch_secret()
905 offset = params.guest_uaddr & (PAGE_SIZE - 1); in sev_launch_secret()
907 data->guest_len = params.guest_len; in sev_launch_secret()
909 blob = psp_copy_user_blob(params.trans_uaddr, params.trans_len); in sev_launch_secret()
916 data->trans_len = params.trans_len; in sev_launch_secret()
918 hdr = psp_copy_user_blob(params.hdr_uaddr, params.hdr_len); in sev_launch_secret()
924 data->hdr_len = params.hdr_len; in sev_launch_secret()