Skip to content

Commit d3ee568

Browse files
author
Alex Shi
committed
arm64/kvm: fix build issue on kvm debug
Add the header file asm/debug-monitors.h into debug-sr.c to fix the following bug arch/arm64/kvm/hyp/debug-sr.c: In function ‘__debug_cond_save_host_state’: arch/arm64/kvm/hyp/debug-sr.c:118:45: error: ‘DBG_MDSCR_KDE’ undeclared (first use in this function) if ((vcpu->arch.ctxt.sys_regs[MDSCR_EL1] & DBG_MDSCR_KDE) || ^~~~~~~~~~~~~ arch/arm64/kvm/hyp/debug-sr.c:118:45: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/hyp/debug-sr.c:119:45: error: ‘DBG_MDSCR_MDE’ undeclared (first use in this function) (vcpu->arch.ctxt.sys_regs[MDSCR_EL1] & DBG_MDSCR_MDE)) ^~~~~~~~~~~~~ Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent ce11555 commit d3ee568

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kvm/hyp/debug-sr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/compiler.h>
1919
#include <linux/kvm_host.h>
2020

21+
#include <asm/debug-monitors.h>
2122
#include <asm/kvm_asm.h>
2223
#include <asm/kvm_mmu.h>
2324

0 commit comments

Comments
 (0)