hyperv/vmbus: Add exec cancel support for message Hypercall API.

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8635
This commit is contained in:
Sepherosa Ziehau 2016-11-28 07:44:50 +00:00
parent 9a913ec291
commit 2ee4e46fe6
2 changed files with 9 additions and 0 deletions

View File

@ -307,6 +307,13 @@ vmbus_msghc_exec(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
return error;
}
void
vmbus_msghc_exec_cancel(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
{
vmbus_xact_deactivate(mh->mh_xact);
}
const struct vmbus_message *
vmbus_msghc_wait_result(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
{

View File

@ -157,6 +157,8 @@ void vmbus_msghc_put(struct vmbus_softc *, struct vmbus_msghc *);
void *vmbus_msghc_dataptr(struct vmbus_msghc *);
int vmbus_msghc_exec_noresult(struct vmbus_msghc *);
int vmbus_msghc_exec(struct vmbus_softc *, struct vmbus_msghc *);
void vmbus_msghc_exec_cancel(struct vmbus_softc *,
struct vmbus_msghc *);
const struct vmbus_message *
vmbus_msghc_wait_result(struct vmbus_softc *,
struct vmbus_msghc *);