]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/mem_sharing: enable mem_share audit mode only in debug builds
authorTamas K Lengyel <tamas@tklengyel.com>
Fri, 19 Jul 2019 11:49:26 +0000 (13:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jul 2019 11:49:26 +0000 (13:49 +0200)
Improves performance for release builds.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/include/asm-x86/mem_sharing.h

index 9f9f7e93e3ea2c9b623671049f568c1aabe5501e..afd0c172926ddf4c020f2c22bb256d7c8a8d93af 100644 (file)
 #include <public/memory.h>
 
 /* 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;