Page MenuHomeFreeBSD

vmm: Move common accessors and vm_eventinfo into sys/dev/vmm
ClosedPublic

Authored by markj on Nov 4 2025, 4:40 PM.
Tags
None
Referenced Files
F162632598: D53586.diff
Wed, Jul 15, 6:53 AM
F162632597: D53586.diff
Wed, Jul 15, 6:53 AM
Unknown Object (File)
Mon, Jul 13, 4:24 AM
Unknown Object (File)
Mon, Jul 13, 4:23 AM
Unknown Object (File)
Mon, Jun 22, 11:03 PM
Unknown Object (File)
Sun, Jun 21, 10:21 PM
Unknown Object (File)
Thu, Jun 18, 2:48 PM
Unknown Object (File)
Thu, Jun 18, 6:12 AM

Details

Summary

Now that struct vm and struct vcpu are defined in headers, provide
inline accessors. We could just remove the accessors outright, but they
don't hurt and it would result in unneeded churn.

As a part of this, consolidate definitions related to struct
vm_eventinfo as well. I'm not sure if struct vm_eventinfo is really
needed now that vmmops_run implementations can directly access vm and
vcpu fields.

No functional change intended.

Diff Detail

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