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
F159782774: D53419.diff
Thu, Jun 18, 5:08 AM
F159779058: D53419.diff
Thu, Jun 18, 3:55 AM
F159775269: D53419.diff
Thu, Jun 18, 2:41 AM
Unknown Object (File)
Mon, Jun 15, 10:01 AM
Unknown Object (File)
Mon, Jun 8, 11:04 AM
Unknown Object (File)
May 15 2026, 1:33 PM
Unknown Object (File)
May 15 2026, 11:21 AM
Unknown Object (File)
May 15 2026, 9:46 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