Lines Matching refs:alloc_msg
524 struct vmci_queue_pair_alloc_msg *alloc_msg; in vmci_queue_pair_alloc_hypercall() local
533 msg_size = sizeof(*alloc_msg) + (size_t)entry->num_ppns * sizeof(PPN); in vmci_queue_pair_alloc_hypercall()
534 alloc_msg = vmci_alloc_kernel_mem(msg_size, VMCI_MEMORY_NORMAL); in vmci_queue_pair_alloc_hypercall()
535 if (!alloc_msg) in vmci_queue_pair_alloc_hypercall()
538 alloc_msg->hdr.dst = VMCI_MAKE_HANDLE(VMCI_HYPERVISOR_CONTEXT_ID, in vmci_queue_pair_alloc_hypercall()
540 alloc_msg->hdr.src = VMCI_ANON_SRC_HANDLE; in vmci_queue_pair_alloc_hypercall()
541 alloc_msg->hdr.payload_size = msg_size - VMCI_DG_HEADERSIZE; in vmci_queue_pair_alloc_hypercall()
542 alloc_msg->handle = entry->qp.handle; in vmci_queue_pair_alloc_hypercall()
543 alloc_msg->peer = entry->qp.peer; in vmci_queue_pair_alloc_hypercall()
544 alloc_msg->flags = entry->qp.flags; in vmci_queue_pair_alloc_hypercall()
545 alloc_msg->produce_size = entry->qp.produce_size; in vmci_queue_pair_alloc_hypercall()
546 alloc_msg->consume_size = entry->qp.consume_size; in vmci_queue_pair_alloc_hypercall()
547 alloc_msg->num_ppns = entry->num_ppns; in vmci_queue_pair_alloc_hypercall()
548 result = vmci_populate_ppn_list((uint8_t *)alloc_msg + in vmci_queue_pair_alloc_hypercall()
549 sizeof(*alloc_msg), &entry->ppn_set); in vmci_queue_pair_alloc_hypercall()
551 result = vmci_send_datagram((struct vmci_datagram *)alloc_msg); in vmci_queue_pair_alloc_hypercall()
552 vmci_free_kernel_mem(alloc_msg, msg_size); in vmci_queue_pair_alloc_hypercall()