HomeFreeBSD

vmm svm: Refactor per-vCPU data.

Description

vmm svm: Refactor per-vCPU data.

  • Allocate VMCBs separately to avoid excessive padding in struct svm_vcpu.
  • Allocate APIC pages dynamically directly in struct vlapic.
  • Move vm_mtrr into struct svm_vcpu rather than using a separate parallel array.

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

(cherry picked from commit 215d2fd53f6c254cb900e1775abae86d3fdada65)

Details

Provenance
jhbAuthored on Nov 18 2022, 5:57 PM
Reviewer
corvink
Differential Revision
D37148: vmm svm: Refactor per-vCPU data.
Parents
rG80cce0a3610b: vmm: Use vm_get_maxcpus() instead of VM_MAXCPU in various places.
Branches
Unknown
Tags
Unknown