diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-10-25 15:47:39 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-09 20:31:25 +0300 |
commit | dd5045fed588b3e7ac0a4546138b2fe16d5d0fff (patch) | |
tree | 7f659f24e920567f3f3fc52494087bb0e0de5db0 /arch/x86/kvm/smm.h | |
parent | e6a82199b610d843d810bc90d1f5df667906c402 (diff) | |
download | linux-dd5045fed588b3e7ac0a4546138b2fe16d5d0fff.tar.xz |
KVM: x86: SVM: use smram structs
Use SMM structs in the SVM code as well, which removes the last user of
put_smstate/GET_SMSTATE so remove these macros as well.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221025124741.228045-22-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/smm.h')
-rw-r--r-- | arch/x86/kvm/smm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kvm/smm.h b/arch/x86/kvm/smm.h index b66da263ec82..520217467ac2 100644 --- a/arch/x86/kvm/smm.h +++ b/arch/x86/kvm/smm.h @@ -4,12 +4,6 @@ #include <linux/build_bug.h> -#define GET_SMSTATE(type, buf, offset) \ - (*(type *)((buf) + (offset) - 0x7e00)) - -#define PUT_SMSTATE(type, buf, offset, val) \ - *(type *)((buf) + (offset) - 0x7e00) = val - #ifdef CONFIG_KVM_SMM |