KVM: x86: smm: add structs for KVM's smram layout
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 25 Oct 2022 12:47:34 +0000 (15:47 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:22 +0000 (12:31 -0500)
commit09779c16e3eda95312ca14cd263dbb05da147b75
tree68ff0ea3d8c6429c22cf26e808c7a2bc026ec7ee
parent89dccf82e99e95ee465e2b00428494fe64679256
KVM: x86: smm: add structs for KVM's smram layout

Add structs that will be used to define and read/write the KVM's
SMRAM layout, instead of reading/writing to raw offsets.

Also document the differences between KVM's SMRAM layout and SMRAM
layout that is used by real Intel/AMD cpus.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221025124741.228045-17-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/smm.c
arch/x86/kvm/smm.h