Skip to content
Commit 068f7ea6 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: SVM: improve split between svm_prepare_guest_switch and sev_es_prepare_guest_switch



KVM performs the VMSAVE to the host save area for both regular and SEV-ES
guests, so hoist it up to svm_prepare_guest_switch.  And because
sev_es_prepare_guest_switch does not really need to know the details
of struct svm_cpu_data *, just pass it the pointer to the host save area
inside the HSAVE page.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 98242dca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment