]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56d33403d94be68fbbf830abd45f7cd5eccc9e1f
treeb25a38fb3150a1a499bdf627600038b32eff7603
parent53eb136bb3cfd9c91f3874ebb3184317b960a58e
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