hyperv/vmbus: Add result polling support for message Hypercall API.

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8634
This commit is contained in:
Sepherosa Ziehau 2016-11-28 07:36:51 +00:00
parent 203632f263
commit 2fb45c54a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309242
2 changed files with 11 additions and 0 deletions

View File

@ -315,6 +315,14 @@ vmbus_msghc_wait_result(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
return (vmbus_xact_wait(mh->mh_xact, &resp_len));
}
const struct vmbus_message *
vmbus_msghc_poll_result(struct vmbus_softc *sc __unused, struct vmbus_msghc *mh)
{
size_t resp_len;
return (vmbus_xact_poll(mh->mh_xact, &resp_len));
}
void
vmbus_msghc_wakeup(struct vmbus_softc *sc, const struct vmbus_message *msg)
{

View File

@ -160,6 +160,9 @@ int vmbus_msghc_exec(struct vmbus_softc *, struct vmbus_msghc *);
const struct vmbus_message *
vmbus_msghc_wait_result(struct vmbus_softc *,
struct vmbus_msghc *);
const struct vmbus_message *
vmbus_msghc_poll_result(struct vmbus_softc *,
struct vmbus_msghc *);
void vmbus_msghc_wakeup(struct vmbus_softc *,
const struct vmbus_message *);
void vmbus_msghc_reset(struct vmbus_msghc *, size_t);