summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/vmbus/hyperv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/vmbus/hyperv.c')
-rw-r--r--sys/dev/hyperv/vmbus/hyperv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/hyperv/vmbus/hyperv.c b/sys/dev/hyperv/vmbus/hyperv.c
index c49f966..0ce033f 100644
--- a/sys/dev/hyperv/vmbus/hyperv.c
+++ b/sys/dev/hyperv/vmbus/hyperv.c
@@ -118,6 +118,13 @@ hv_vmbus_do_hypercall(uint64_t value, void *input, void *output)
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.
* (This involves a hypercall.)
OpenPOWER on IntegriCloud