HomeFreeBSD

vmm vmx: Allocate vpids on demand as each vCPU is initialized.

Description

vmm vmx: Allocate vpids on demand as each vCPU is initialized.

Compared to the previous version this does mean that if the system as
a whole runs out of dedicated vPIDs you might end up with some vCPUs
within a single VM using dedicated vPIDs and others using shared
vPIDs, but this should not break anything.

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

(cherry picked from commit 58eefc67a1cf16623c23354efd089f65401c0455)

Details

Provenance
jhbAuthored on Nov 18 2022, 6:04 PM
Reviewer
corvink
Differential Revision
D37169: vmm vmx: Allocate vpids on demand as each vCPU is initialized.
Parents
rG3348ba1d6da9: vmm: Lookup vcpu pointers in vmmdev_ioctl.
Branches
Unknown
Tags
Unknown