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
F96935292: D37156.diff
Fri, Sep 27, 5:55 AM
Unknown Object (File)
Thu, Sep 26, 7:23 AM
Unknown Object (File)
Sat, Sep 7, 9:08 AM
Unknown Object (File)
Sat, Aug 31, 1:28 AM
Unknown Object (File)
Jul 10 2024, 4:25 PM
Unknown Object (File)
Jun 30 2024, 2:58 AM
Unknown Object (File)
Jun 30 2024, 2:58 AM
Unknown Object (File)
Jun 30 2024, 2:58 AM

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 48028
Build 44915: 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.