Page MenuHomeFreeBSD

amd64/vmm: Factor vcpu_notify_event() into two functions
ClosedPublic

Authored by markj on Oct 28 2025, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 7:38 PM
Unknown Object (File)
Thu, Mar 19, 4:30 AM
Unknown Object (File)
Sun, Mar 15, 7:34 AM
Unknown Object (File)
Feb 18 2026, 7:41 AM
Unknown Object (File)
Feb 17 2026, 6:53 PM
Unknown Object (File)
Feb 8 2026, 10:42 AM
Unknown Object (File)
Feb 7 2026, 4:30 PM
Unknown Object (File)
Jan 31 2026, 11:29 AM
Subscribers

Details

Summary

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.

Diff Detail

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