]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Apr 2022 09:34:40 +0000 (05:34 -0400)
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: bec77d4f997cd ("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>
arch/x86/kvm/svm/svm.h
arch/x86/kvm/svm/svm_onhyperv.c

index e37bb3508cfac4ba97a49b16fe6a936afe0632af..f01bf487babdb0c23ef90a2f3f1dee3efa82bedb 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/svm.h>
 #include <asm/sev-common.h>
 
+#include "kvm_cache_regs.h"
+
 #define __sme_page_pa(x) __sme_set(page_to_pfn(x) << PAGE_SHIFT)
 
 #define        IOPM_SIZE PAGE_SIZE * 3
index 98aa981c04ec5ff8db55e6f1dfa20cc912af4cc0..8cdc62c74a964e4369d0d1a4e09c60cde740095b 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kvm_host.h>
-#include "kvm_cache_regs.h"
 
 #include <asm/mshyperv.h>