HomeFreeBSD

vmm: Expose struct vcpu as an opaque type.

Description

vmm: Expose struct vcpu as an opaque type.

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.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D37156

(cherry picked from commit 950af9ffc616ee573a1ce6ef0c841e897b13dfc4)

Details

Provenance
jhbAuthored on Nov 18 2022, 6:01 PM
Reviewer
corvink
Differential Revision
D37156: vmm: Expose struct vcpu as an opaque type.
Parents
rGeb15017f7d2e: vmm: Use VLAPIC_CTR* in more places.
Branches
Unknown
Tags
Unknown