From: Tamas K Lengyel Date: Fri, 19 Jul 2019 11:49:26 +0000 (+0200) Subject: x86/mem_sharing: enable mem_share audit mode only in debug builds X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1899 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a23654d77d3ecd6d5085217dde99564e63160ecf;p=xen.git x86/mem_sharing: enable mem_share audit mode only in debug builds Improves performance for release builds. Signed-off-by: Tamas K Lengyel --- diff --git a/xen/include/asm-x86/mem_sharing.h b/xen/include/asm-x86/mem_sharing.h index 9f9f7e93e3..afd0c17292 100644 --- a/xen/include/asm-x86/mem_sharing.h +++ b/xen/include/asm-x86/mem_sharing.h @@ -25,7 +25,11 @@ #include /* Auditing of memory sharing code? */ +#ifndef NDEBUG #define MEM_SHARING_AUDIT 1 +#else +#define MEM_SHARING_AUDIT 0 +#endif typedef uint64_t shr_handle_t;