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

Details

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