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:
parent
203632f263
commit
2fb45c54a1
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user