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

Details

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