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
F135977166: D37156.id112265.diff
Fri, Nov 14, 6:15 PM
Unknown Object (File)
Wed, Nov 5, 9:05 AM
Unknown Object (File)
Tue, Nov 4, 10:35 PM
Unknown Object (File)
Tue, Nov 4, 7:48 PM
Unknown Object (File)
Mon, Nov 3, 12:42 PM
Unknown Object (File)
Thu, Oct 30, 8:20 PM
Unknown Object (File)
Mon, Oct 27, 10:27 PM
Unknown Object (File)
Fri, Oct 24, 7:46 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.