]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Fix kvm_cache_regs.h inclusions for is_guest_mode()
authorPeter Gonda <pgonda@google.com>
Fri, 4 Mar 2022 16:10:32 +0000 (08:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:02:56 +0000 (20:02 +0200)
commit38c3bf146ad62c08e79b6a48153cd53762df7f90
tree7e6ae8fe8ad8b2187951cdddeff6da27e7397645
parent2773c5d560cb43b1770f1b29a24a19a76602ddea
KVM: SVM: Fix kvm_cache_regs.h inclusions for is_guest_mode()

[ Upstream commit 4a9e7b9ea252842bc8b14d495706ac6317fafd5d ]

Include kvm_cache_regs.h to pick up the definition of is_guest_mode(),
which is referenced by nested_svm_virtualize_tpr() in svm.h. Remove
include from svm_onhpyerv.c which was done only because of lack of
include in svm.h.

Fixes: 883b0a91f41ab ("KVM: SVM: Move Nested SVM Implementation to nested.c")
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Peter Gonda <pgonda@google.com>
Message-Id: <20220304161032.2270688-1-pgonda@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/svm/svm.h
arch/x86/kvm/svm/svm_onhyperv.c