diff options
author | Sean Christopherson <seanjc@google.com> | 2021-07-13 18:33:10 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-08-02 17:01:56 +0200 |
commit | d0f9f826d8ac06446391ceb3d4a440f5b48b3134 (patch) | |
tree | 48081c2c3a2ba01afe4b1fc36699a95945788d06 /arch/x86/kvm/vmx | |
parent | KVM: SVM: Drop redundant writes to vmcb->save.cr4 at RESET/INIT (diff) | |
download | linux-d0f9f826d8ac06446391ceb3d4a440f5b48b3134.tar.xz linux-d0f9f826d8ac06446391ceb3d4a440f5b48b3134.zip |
KVM: SVM: Stuff save->dr6 at during VMSA sync, not at RESET/INIT
Move code to stuff vmcb->save.dr6 to its architectural init value from
svm_vcpu_reset() into sev_es_sync_vmsa(). Except for protected guests,
a.k.a. SEV-ES guests, vmcb->save.dr6 is set during VM-Enter, i.e. the
extra write is unnecessary. For SEV-ES, stuffing save->dr6 handles a
theoretical case where the VMSA could be encrypted before the first
KVM_RUN.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-33-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx')
0 files changed, 0 insertions, 0 deletions