HomeFreeBSD

domain: give domains a chance to probe for availability

Description

domain: give domains a chance to probe for availability

This gives any given domain a chance to indicate that it's not actually
supported on the current system. If dom_probe isn't supplied, we assume
the domain is universally applicable as most of them are. Keeping
fully-initialized and registered domains around that physically can't
work on a large majority of FreeBSD deployments is sub-optimal and leads
to errors that aren't consistent with the reality of why the socket
can't be created (e.g. ESOCKTNOSUPPORT) because such scenario has to be
caught upon pru_attach, at which point kicking back the more-appropriate
EAFNOSUPPORT would seem weird.

The initial consumer of this will be hvsock, which is only available on
HyperV guests.

Reviewed by: cem (earlier version), bcr (manpages)
Differential Revision: https://reviews.freebsd.org/D25062

Details

Provenance
kevansAuthored on Jun 26 2020, 2:17 AM
Reviewer
cem
Differential Revision
D25062: domain: give domains a chance to probe for availability
Parents
rG59d1661cd8b0: tpm_tis: Improve interrupt allocation
Branches
Unknown
Tags
Unknown