]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: drop unnecessary code in svm_hv_vmcb_dirty_nested_enlightenments()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 20 Dec 2021 15:21:35 +0000 (16:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 17:15:03 +0000 (12:15 -0500)
commitc24c71540d812378935e48c877e17e1cb1a76535
tree567a705b2d6ed8ec4ae6c346e65c7ffafaca5b27
parent198af90b39f7a568e3f94b78b599bd9cd96de58f
KVM: SVM: drop unnecessary code in svm_hv_vmcb_dirty_nested_enlightenments()

Commit 973590b0aa973 ("KVM: SVM: delay svm_vcpu_init_msrpm after
svm->vmcb is initialized") re-arranged svm_vcpu_init_msrpm() call in
svm_create_vcpu(), thus making the comment about vmcb being NULL
obsolete. Drop it.

While on it, drop superfluous vmcb_is_clean() check: vmcb_mark_dirty()
is a bit flip, an extra check is unlikely to bring any performance gain.
Drop now-unneeded vmcb_is_clean() helper as well.

Fixes: 973590b0aa973 ("KVM: SVM: delay svm_vcpu_init_msrpm after svm->vmcb is initialized")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211220152139.418372-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.h
arch/x86/kvm/svm/svm_onhyperv.h