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
Unknown Object (File)
Thu, Apr 3, 4:07 AM
Unknown Object (File)
Sat, Mar 22, 10:56 AM
Unknown Object (File)
Fri, Mar 21, 1:18 AM
Unknown Object (File)
Thu, Mar 20, 8:00 AM
Unknown Object (File)
Mar 4 2025, 8:58 PM
Unknown Object (File)
Feb 28 2025, 10:50 AM
Unknown Object (File)
Feb 22 2025, 2:11 PM
Unknown Object (File)
Feb 22 2025, 2: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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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.