[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 27/34] x86: make hvm_inject_* functions build when !CONFIG_HVM
They reference hvm_inject_event which is HVM code (not compiled). They aren't used by code outside HVM code anyway. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/include/asm-x86/hvm/hvm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-x86/hvm/hvm.h index b3bc8d2..0444f3b 100644 --- a/xen/include/asm-x86/hvm/hvm.h +++ b/xen/include/asm-x86/hvm/hvm.h @@ -422,6 +422,7 @@ static inline void hvm_inject_exception( unsigned int vector, unsigned int type, unsigned int insn_len, int error_code) { +#if CONFIG_HVM struct x86_event event = { .vector = vector, .type = type, @@ -430,10 +431,12 @@ static inline void hvm_inject_exception( }; hvm_inject_event(&event); +#endif } static inline void hvm_inject_hw_exception(unsigned int vector, int errcode) { +#if CONFIG_HVM struct x86_event event = { .vector = vector, .type = X86_EVENTTYPE_HW_EXCEPTION, @@ -441,10 +444,12 @@ static inline void hvm_inject_hw_exception(unsigned int vector, int errcode) }; hvm_inject_event(&event); +#endif } static inline void hvm_inject_page_fault(int errcode, unsigned long cr2) { +#if CONFIG_HVM struct x86_event event = { .vector = TRAP_page_fault, .type = X86_EVENTTYPE_HW_EXCEPTION, @@ -453,6 +458,7 @@ static inline void hvm_inject_page_fault(int errcode, unsigned long cr2) }; hvm_inject_event(&event); +#endif } static inline int hvm_event_pending(struct vcpu *v) -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |