HomeFreeBSD

amd64/vmm: Factor vcpu_notify_event() into two functions

Description

amd64/vmm: Factor vcpu_notify_event() into two functions

vcpu_notify_event() previously took a boolean parameter which determines
whether the implementation should try to use a posted interrupt. On
arm64 and riscv, the implementation of vcpu_notify_event() is otherwise
identical to that of amd64.

With the aim of deduplicating vcpu state management code, introduce a
separate amd64-only function which tries to use posted interrupts. This
requires some duplication with vcpu_notify_event_locked(), but only a
little bit.

Then, fix up callers. No functional change intended.

Reviewed by: corvink, jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D53419

Details

Provenance
markjAuthored on Tue, Nov 4, 1:52 PM
Reviewer
corvink
Differential Revision
D53419: amd64/vmm: Factor vcpu_notify_event() into two functions
Parents
rGc3f41c02c9a5: vmm: Simplify the VM_ALLOC_MEMSEG ioctl a bit
Branches
Unknown
Tags
Unknown