[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/shadow: the trace_emul_write_val() hook is HVM-only
commit e55c9b25349c133a333b7b827d3b4645a84b5846 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Tue Apr 21 11:02:36 2020 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Apr 21 11:02:36 2020 +0200 x86/shadow: the trace_emul_write_val() hook is HVM-only Its only caller lives in HVM-only code, and the only caller of trace_shadow_emulate() also already site in a HVM-only code section. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> --- xen/arch/x86/mm/shadow/multi.c | 4 +++- xen/include/asm-x86/paging.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 16bb6f3e8a..2851aa0407 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -2694,6 +2694,7 @@ static inline void trace_shadow_emulate_other(u32 event, } } +#ifdef CONFIG_HVM #if GUEST_PAGING_LEVELS == 3 static DEFINE_PER_CPU(guest_va_t,trace_emulate_initial_va); static DEFINE_PER_CPU(int,trace_extra_emulation_count); @@ -2745,6 +2746,7 @@ static inline void trace_shadow_emulate(guest_l1e_t gl1e, unsigned long va) __trace_var(event, 0/*!tsc*/, sizeof(d), &d); } } +#endif /* CONFIG_HVM */ /**************************************************************************/ /* Entry points into the shadow code */ @@ -4896,8 +4898,8 @@ const struct paging_mode sh_paging_mode = { .shadow.guess_wrmap = sh_guess_wrmap, #endif .shadow.pagetable_dying = sh_pagetable_dying, -#endif /* CONFIG_HVM */ .shadow.trace_emul_write_val = trace_emulate_write_val, +#endif /* CONFIG_HVM */ .shadow.shadow_levels = SHADOW_PAGING_LEVELS, }; diff --git a/xen/include/asm-x86/paging.h b/xen/include/asm-x86/paging.h index 5243de7312..f53575f3d9 100644 --- a/xen/include/asm-x86/paging.h +++ b/xen/include/asm-x86/paging.h @@ -108,10 +108,10 @@ struct shadow_paging_mode { int (*guess_wrmap )(struct vcpu *v, unsigned long vaddr, mfn_t gmfn); void (*pagetable_dying )(paddr_t gpa); -#endif void (*trace_emul_write_val )(const void *ptr, unsigned long vaddr, const void *src, unsigned int bytes); #endif +#endif /* For outsiders to tell what mode we're in */ unsigned int shadow_levels; }; -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |