vmm svm: Refactor per-vCPU data.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 17:57:48 +0000 (09:57 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 18:25:35 +0000 (10:25 -0800)
commit215d2fd53f6c254cb900e1775abae86d3fdada65
tree4c8d9fbe51543a51b608bd78385e0dd81bd217b8
parent35abc6c238e98e313c5b1cb5ed18b8ed68615abc
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
sys/amd64/vmm/amd/svm.c
sys/amd64/vmm/amd/svm_msr.c
sys/amd64/vmm/amd/svm_softc.h