OSDN Git Service

KVM: SVM: Rewrite sev_es_prepare_switch_to_guest()'s comment about swap types
authorSean Christopherson <seanjc@google.com>
Thu, 15 Jun 2023 06:37:51 +0000 (16:37 +1000)
committerSean Christopherson <seanjc@google.com>
Fri, 28 Jul 2023 22:58:53 +0000 (15:58 -0700)
commitf8d808ed1ba0019997f18ff2be0cf85e33a31022
treea2b63cff18f48345f835ccb33db822acd14666b5
parent29de732cc95cb5219d8c2bd145cb7293cb572fc3
KVM: SVM: Rewrite sev_es_prepare_switch_to_guest()'s comment about swap types

Rewrite the comment(s) in sev_es_prepare_switch_to_guest() to explain the
swap types employed by the CPU for SEV-ES guests, i.e. to explain why KVM
needs to save a seemingly random subset of host state, and to provide a
decoder for the APM's Type-A/B/C terminology.

Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Link: https://lore.kernel.org/r/20230615063757.3039121-4-aik@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c