]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: SVM: Track the per-CPU host save area as a VMCB pointer
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 20:45:11 +0000 (13:45 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 30 Aug 2024 02:06:12 +0000 (19:06 -0700)
commit32071fa355e73495e509a28511a81b4baab51ff6
treec40272d32062e5eef414519bed77899d331df8bf
parent1b5ef14dc656a25280d56795b73cf90dad64ad44
KVM: SVM: Track the per-CPU host save area as a VMCB pointer

The host save area is a VMCB, track it as such to help readers follow
along, but mostly to cleanup/simplify the retrieval of the SEV-ES host
save area.

Note, the compile-time assertion that

  offsetof(struct vmcb, save) == EXPECTED_VMCB_CONTROL_AREA_SIZE

ensures that the SEV-ES save area is indeed at offset 0x400 (whoever added
the expected/architectural VMCB offsets apparently likes decimal).

No functional change intended.

Link: https://lore.kernel.org/r/20240802204511.352017-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h