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
F170797690: D53419.id.diff
Sun, Sep 6, 4:53 PM
F170707258: D53419.id165256.diff
Sun, Sep 6, 3:24 AM
F170691029: D53419.id165816.diff
Sun, Sep 6, 1:25 AM
Unknown Object (File)
Sat, Sep 5, 10:55 PM
Unknown Object (File)
Sat, Sep 5, 12:33 PM
Unknown Object (File)
Sat, Sep 5, 11:41 AM
Unknown Object (File)
Sat, Sep 5, 10:05 AM
Unknown Object (File)
Fri, Sep 4, 7:42 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 68193
Build 65076: arc lint + arc unit