Page MenuHomeFreeBSD

vmm: Expose struct vcpu as an opaque type.
ClosedPublic

Authored by jhb on Oct 27 2022, 3:04 PM.
Tags
None
Referenced Files
F110745654: D37156.diff
Sat, Feb 22, 2:11 PM
F110745328: D37156.id.diff
Sat, Feb 22, 2:08 PM
F110743657: D37156.id112265.diff
Sat, Feb 22, 1:53 PM
F110742709: D37156.id113299.diff
Sat, Feb 22, 1:43 PM
F110742527: D37156.id112624.diff
Sat, Feb 22, 1:41 PM
Unknown Object (File)
Fri, Jan 24, 5:42 PM
Unknown Object (File)
Jan 22 2025, 1:03 PM
Unknown Object (File)
Jan 20 2025, 4:08 PM

Details

Summary

Pass a pointer to the current struct vcpu to the vcpu_init callback
and save this pointer in the CPU-specific vcpu structures.

Add routines to fetch a struct vcpu by index from a VM and to query
the VM and vcpuid from a struct vcpu.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48161
Build 45048: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Oct 27 2022, 3:04 PM
corvink added inline comments.
sys/amd64/vmm/vmm.c
2331

Nit: vcpuid might be clearer.

This revision is now accepted and ready to land.Nov 4 2022, 3:08 PM
jhb marked an inline comment as done.Nov 4 2022, 9:17 PM
This revision now requires review to proceed.Nov 4 2022, 9:19 PM
This revision is now accepted and ready to land.Nov 7 2022, 7:14 AM
This revision was automatically updated to reflect the committed changes.