Lines Matching full:msg

112     msgp_name = g_strdup_printf("synic-%u-msg-page", vp_index);  in synic_realize()
191 struct hyperv_message msg; member
203 * BUSY), copies msg, and schedules cpu_post_msg on the assigned cpu
207 * cpu_post_msg (vcpu thread) tries to copy staged msg to msg slot,
287 memcpy(dst_msg, &staged_msg->msg, sizeof(*dst_msg)); in cpu_post_msg()
296 * Notify the msg originator of the progress made; if the slot was busy we in cpu_post_msg()
322 memcpy(&staged_msg->msg, src_msg, sizeof(*src_msg)); in hyperv_post_msg()
341 * -EAGAIN and let the msg originator retry in sint_ack_handler()
609 struct hyperv_post_message_input *msg; in hyperv_hcall_post_message() local
615 if (param & (__alignof__(*msg) - 1)) { in hyperv_hcall_post_message()
619 len = sizeof(*msg); in hyperv_hcall_post_message()
620 msg = cpu_physical_memory_map(param, &len, 0); in hyperv_hcall_post_message()
621 if (len < sizeof(*msg)) { in hyperv_hcall_post_message()
625 if (msg->payload_size > sizeof(msg->payload)) { in hyperv_hcall_post_message()
633 if (mh->conn_id == (msg->connection_id & HV_CONNECTION_ID_MASK)) { in hyperv_hcall_post_message()
634 ret = mh->handler(msg, mh->data); in hyperv_hcall_post_message()
641 cpu_physical_memory_unmap(msg, len, 0, 0); in hyperv_hcall_post_message()
751 HvSynDbgMsg msg; in hyperv_hcall_reset_dbg_session() local
767 msg.type = HV_SYNDBG_MSG_CONNECTION_INFO; in hyperv_hcall_reset_dbg_session()
768 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_reset_dbg_session()
773 reset_dbg_session->host_ip = msg.u.connection_info.host_ip; in hyperv_hcall_reset_dbg_session()
774 reset_dbg_session->host_port = msg.u.connection_info.host_port; in hyperv_hcall_reset_dbg_session()
778 reset_dbg_session->target_ip = msg.u.connection_info.host_ip; in hyperv_hcall_reset_dbg_session()
779 reset_dbg_session->target_port = msg.u.connection_info.host_port; in hyperv_hcall_reset_dbg_session()
798 HvSynDbgMsg msg; in hyperv_hcall_retreive_dbg_data() local
819 msg.type = HV_SYNDBG_MSG_RECV; in hyperv_hcall_retreive_dbg_data()
820 msg.u.recv.buf_gpa = outgpa + sizeof(*debug_data_out); in hyperv_hcall_retreive_dbg_data()
821 msg.u.recv.count = TARGET_PAGE_SIZE - sizeof(*debug_data_out); in hyperv_hcall_retreive_dbg_data()
822 msg.u.recv.options = debug_data_in->options; in hyperv_hcall_retreive_dbg_data()
823 msg.u.recv.timeout = debug_data_in->timeout; in hyperv_hcall_retreive_dbg_data()
824 msg.u.recv.is_raw = true; in hyperv_hcall_retreive_dbg_data()
825 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_retreive_dbg_data()
834 debug_data_out->retrieved_count = msg.u.recv.retrieved_count; in hyperv_hcall_retreive_dbg_data()
836 debug_data_in->count - msg.u.recv.retrieved_count; in hyperv_hcall_retreive_dbg_data()
857 HvSynDbgMsg msg; in hyperv_hcall_post_dbg_data() local
883 msg.type = HV_SYNDBG_MSG_SEND; in hyperv_hcall_post_dbg_data()
884 msg.u.send.buf_gpa = ingpa + sizeof(*post_data_in); in hyperv_hcall_post_dbg_data()
885 msg.u.send.count = post_data_in->count; in hyperv_hcall_post_dbg_data()
886 msg.u.send.is_raw = true; in hyperv_hcall_post_dbg_data()
887 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_hcall_post_dbg_data()
892 post_data_out->pending_count = msg.u.send.pending_count; in hyperv_hcall_post_dbg_data()
911 HvSynDbgMsg msg; in hyperv_syndbg_send() local
917 msg.type = HV_SYNDBG_MSG_SEND; in hyperv_syndbg_send()
918 msg.u.send.buf_gpa = ingpa; in hyperv_syndbg_send()
919 msg.u.send.count = count; in hyperv_syndbg_send()
920 msg.u.send.is_raw = false; in hyperv_syndbg_send()
921 if (hv_syndbg_handler(hv_syndbg_context, &msg)) { in hyperv_syndbg_send()
931 HvSynDbgMsg msg; in hyperv_syndbg_recv() local
937 msg.type = HV_SYNDBG_MSG_RECV; in hyperv_syndbg_recv()
938 msg.u.recv.buf_gpa = ingpa; in hyperv_syndbg_recv()
939 msg.u.recv.count = count; in hyperv_syndbg_recv()
940 msg.u.recv.options = 0; in hyperv_syndbg_recv()
941 msg.u.recv.timeout = 0; in hyperv_syndbg_recv()
942 msg.u.recv.is_raw = false; in hyperv_syndbg_recv()
943 ret = hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_syndbg_recv()
949 msg.u.recv.retrieved_count); in hyperv_syndbg_recv()
954 HvSynDbgMsg msg; in hyperv_syndbg_set_pending_page() local
960 msg.type = HV_SYNDBG_MSG_SET_PENDING_PAGE; in hyperv_syndbg_set_pending_page()
961 msg.u.pending_page.buf_gpa = ingpa; in hyperv_syndbg_set_pending_page()
962 hv_syndbg_handler(hv_syndbg_context, &msg); in hyperv_syndbg_set_pending_page()
967 HvSynDbgMsg msg; in hyperv_syndbg_query_options() local
973 msg.type = HV_SYNDBG_MSG_QUERY_OPTIONS; in hyperv_syndbg_query_options()
974 if (hv_syndbg_handler(hv_syndbg_context, &msg) != HV_STATUS_SUCCESS) { in hyperv_syndbg_query_options()
978 return msg.u.query_options.options; in hyperv_syndbg_query_options()