OSDN Git Service

KVM: SVM: remove uneeded fields from host_save_users_msrs
authorMichael Roth <michael.roth@amd.com>
Tue, 2 Feb 2021 19:01:25 +0000 (13:01 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:34 +0000 (05:27 -0500)
commit553cc15f6e8d1467dc09a1fe6e51fcdea5f96471
treeb25a38fb3150a1a499bdf627600038b32eff7603
parente79b91bb3c916a52ce823ab60489c717c925c49f
KVM: SVM: remove uneeded fields from host_save_users_msrs

Now that the set of host user MSRs that need to be individually
saved/restored are the same with/without SEV-ES, we can drop the
.sev_es_restored flag and just iterate through the list unconditionally
for both cases. A subsequent patch can then move these loops to a
common path.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-Id: <20210202190126.2185715-3-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h