diff options
| author | Michael Roth <[email protected]> | 2021-02-02 13:01:26 -0600 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-02-04 05:27:35 -0500 |
| commit | a7fc06dd2f14f88e611a968f7efa6532cdd5529a (patch) | |
| tree | 657a25ec597ebac117970282f5de7f6fe4e58d2c /tools/perf/scripts/python/bin | |
| parent | 553cc15f6e8d1467dc09a1fe6e51fcdea5f96471 (diff) | |
KVM: SVM: use .prepare_guest_switch() to handle CPU register save/setup
Currently we save host state like user-visible host MSRs, and do some
initial guest register setup for MSR_TSC_AUX and MSR_AMD64_TSC_RATIO
in svm_vcpu_load(). Defer this until just before we enter the guest by
moving the handling to kvm_x86_ops.prepare_guest_switch() similarly to
how it is done for the VMX implementation.
Additionally, since handling of saving/restoring host user MSRs is the
same both with/without SEV-ES enabled, move that handling to common
code.
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions