Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/vmbus/hyperv.c
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | if (input != NULL) | ||||
in_paddr = hv_get_phys_addr(input); | in_paddr = hv_get_phys_addr(input); | ||||
if (output != NULL) | if (output != NULL) | ||||
out_paddr = hv_get_phys_addr(output); | out_paddr = hv_get_phys_addr(output); | ||||
return hypercall_md(hypercall_context.hc_addr, value, | return hypercall_md(hypercall_context.hc_addr, value, | ||||
in_paddr, out_paddr); | in_paddr, out_paddr); | ||||
} | } | ||||
uint64_t | |||||
hypercall_post_message(bus_addr_t msg_paddr) | |||||
{ | |||||
return hypercall_md(hypercall_context.hc_addr, | |||||
HYPERCALL_POST_MESSAGE, msg_paddr, 0); | |||||
} | |||||
/** | /** | ||||
* @brief Post a message using the hypervisor message IPC. | * @brief Post a message using the hypervisor message IPC. | ||||
* (This involves a hypercall.) | * (This involves a hypercall.) | ||||
*/ | */ | ||||
hv_vmbus_status | hv_vmbus_status | ||||
hv_vmbus_post_msg_via_msg_ipc( | hv_vmbus_post_msg_via_msg_ipc( | ||||
hv_vmbus_connection_id connection_id, | hv_vmbus_connection_id connection_id, | ||||
hv_vmbus_msg_type message_type, | hv_vmbus_msg_type message_type, | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |