]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Define sev_features and VMPL field in the VMSA
authorBrijesh Singh <brijesh.singh@amd.com>
Mon, 7 Mar 2022 21:33:11 +0000 (15:33 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 5 Apr 2022 17:09:27 +0000 (19:09 +0200)
commit34fa5fdb02dd317412098a5dab123d3563bf0e86
tree9064115bd638d18a63acc36043320d1029b1e636
parent6d94017b7b59bab528be97be158d0d602982e3a6
KVM: SVM: Define sev_features and VMPL field in the VMSA

The hypervisor uses the sev_features field (offset 3B0h) in the Save State
Area to control the SEV-SNP guest features such as SNPActive, vTOM,
ReflectVC etc. An SEV-SNP guest can read the sev_features field through
the SEV_STATUS MSR.

While at it, update dump_vmcb() to log the VMPL level.

See APM2 Table 15-34 and B-4 for more details.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
Link: https://lore.kernel.org/r/20220307213356.2797205-2-brijesh.singh@amd.com
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/svm.c