HomeFreeBSD

vmm: Lookup vcpu pointers in vmmdev_ioctl.

Description

vmm: Lookup vcpu pointers in vmmdev_ioctl.

Centralize mapping vCPU IDs to struct vcpu objects in vmmdev_ioctl and
pass vcpu pointers to the routines in vmm.c. For operations that want
to perform an action on all vCPUs or on a single vCPU, pass pointers
to both the VM and the vCPU using a NULL vCPU pointer to request
global actions.

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

(cherry picked from commit 3f0f4b1598e0e7005bebed7ea3458e96d0fb8e2f)

Details

Provenance
jhbAuthored on Nov 18 2022, 6:03 PM
Reviewer
corvink
Differential Revision
D37168: vmm: Lookup vcpu pointers in vmmdev_ioctl.
Parents
rG197cb60d7af4: vmm ppt: Remove unused vcpu arg from MSI setup handlers.
Branches
Unknown
Tags
Unknown