Page MenuHomeFreeBSD

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

Authored by markj on Tue, Oct 28, 8:30 PM.
Tags
None
Referenced Files
F134111586: D53419.diff
Thu, Oct 30, 9:04 PM
Unknown Object (File)
Wed, Oct 29, 5:00 AM
Unknown Object (File)
Wed, Oct 29, 2:01 AM
Unknown Object (File)
Wed, Oct 29, 1:32 AM
Unknown Object (File)
Wed, Oct 29, 1:30 AM
Unknown Object (File)
Tue, Oct 28, 11:04 PM
Unknown Object (File)
Tue, Oct 28, 10:31 PM
Unknown Object (File)
Tue, Oct 28, 10:21 PM
Subscribers

Details

Reviewers
corvink
jhb
Group Reviewers
bhyve
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