Skip to content

Commit 5483640

Browse files
pgondagregkh
authored andcommitted
KVM: SVM: Fix kvm_cache_regs.h inclusions for is_guest_mode()
[ Upstream commit 4a9e7b9 ] 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: 883b0a9 ("KVM: SVM: Move Nested SVM Implementation to nested.c") Cc: Paolo Bonzini <[email protected]> Cc: Sean Christopherson <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Peter Gonda <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent a82fe0b commit 5483640

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/x86/kvm/svm/svm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <asm/svm.h>
2323
#include <asm/sev-common.h>
2424

25+
#include "kvm_cache_regs.h"
26+
2527
#define __sme_page_pa(x) __sme_set(page_to_pfn(x) << PAGE_SHIFT)
2628

2729
#define IOPM_SIZE PAGE_SIZE * 3

arch/x86/kvm/svm/svm_onhyperv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
#include <linux/kvm_host.h>
7-
#include "kvm_cache_regs.h"
87

98
#include <asm/mshyperv.h>
109

0 commit comments

Comments
 (0)