Page MenuHomeFreeBSD

bhyve: Register new kevents synchronously.
ClosedPublic

Authored by jhb on May 27 2021, 1:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 22 2024, 5:48 PM
Unknown Object (File)
Jan 13 2024, 8:42 AM
Unknown Object (File)
Jan 6 2024, 5:38 AM
Unknown Object (File)
Dec 24 2023, 8:14 PM
Unknown Object (File)
Dec 20 2023, 7:52 AM
Unknown Object (File)
Dec 14 2023, 10:33 PM
Unknown Object (File)
Dec 2 2023, 7:17 AM
Unknown Object (File)
Nov 1 2023, 3:42 PM

Details

Summary

Change mevent_add*() to synchronously add the new kevent. This
permits reporting event registration failures to the caller and avoids
failing the registration of other, unrelated events queued up in the
same batch.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.May 27 2021, 1:24 PM
markj added a subscriber: markj.
markj added inline comments.
usr.sbin/bhyve/mevent.c
465

Perhaps assert that no error occurred, or cast the return value away.

This revision is now accepted and ready to land.Jun 2 2021, 3:58 PM
usr.sbin/bhyve/mevent.c
465

bhyve is pretty consistent about assuming no errors from mutexes, condvars, and once and not using either void casts or assertions of that (e.g. there's a once in block_if.c), so I think this is consistent with the rest of bhyve.

This revision was automatically updated to reflect the committed changes.