HomeFreeBSD

bhyve: Register hlt and pause vmexit handlers unconditionally

Description

bhyve: Register hlt and pause vmexit handlers unconditionally

These exit handlers might not be used if the corresponding VM
capabilities are not set, but there is no harm in putting them into the
handler table regardless. Doing so simplifies initialization code,
makes it easier to split vmexit handlers into a separate file, and lets
us declare the handler table as const.

Reviewed by: corvink, jhb
MFC after: 2 weeks
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D40572

Details

Provenance
markjAuthored on Jun 19 2023, 7:46 PM
Reviewer
corvink
Differential Revision
D40572: bhyve: Register hlt and pause vmexit handlers unconditionally
Parents
rG1da1a2643649: bhyve: Include vmm.h via the usual path
Branches
Unknown
Tags
Unknown