Lines Matching refs:alloc_msg
946 struct vmci_qp_alloc_msg *alloc_msg; in qp_alloc_hypercall() local
955 msg_size = sizeof(*alloc_msg) + in qp_alloc_hypercall()
957 alloc_msg = kmalloc(msg_size, GFP_KERNEL); in qp_alloc_hypercall()
958 if (!alloc_msg) in qp_alloc_hypercall()
961 alloc_msg->hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in qp_alloc_hypercall()
963 alloc_msg->hdr.src = VMCI_ANON_SRC_HANDLE; in qp_alloc_hypercall()
964 alloc_msg->hdr.payload_size = msg_size - VMCI_DG_HEADERSIZE; in qp_alloc_hypercall()
965 alloc_msg->handle = entry->qp.handle; in qp_alloc_hypercall()
966 alloc_msg->peer = entry->qp.peer; in qp_alloc_hypercall()
967 alloc_msg->flags = entry->qp.flags; in qp_alloc_hypercall()
968 alloc_msg->produce_size = entry->qp.produce_size; in qp_alloc_hypercall()
969 alloc_msg->consume_size = entry->qp.consume_size; in qp_alloc_hypercall()
970 alloc_msg->num_ppns = entry->num_ppns; in qp_alloc_hypercall()
972 result = qp_populate_ppn_set((u8 *)alloc_msg + sizeof(*alloc_msg), in qp_alloc_hypercall()
975 result = vmci_send_datagram(&alloc_msg->hdr); in qp_alloc_hypercall()
977 kfree(alloc_msg); in qp_alloc_hypercall()