diff mbox series

[3/3] x86/mem_sharing: enable mem_share audit mode only in debug builds

Message ID 20190425153252.14795-3-tamas@tklengyel.com (mailing list archive)
State New, archived
Headers show
Series [1/3] x86/mem_sharing: aquire extra references for pages with correct domain | expand

Commit Message

Tamas K Lengyel April 25, 2019, 3:32 p.m. UTC
Improves performance for release builds.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Roger Pau Monne <roger.pau@citrix.com>
---
 xen/include/asm-x86/mem_sharing.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/xen/include/asm-x86/mem_sharing.h b/xen/include/asm-x86/mem_sharing.h
index 0e77b7d935..52ea91efa0 100644
--- a/xen/include/asm-x86/mem_sharing.h
+++ b/xen/include/asm-x86/mem_sharing.h
@@ -25,7 +25,9 @@ 
 #include <public/memory.h>
 
 /* Auditing of memory sharing code? */
+#ifndef NDEBUG
 #define MEM_SHARING_AUDIT 1
+#endif
 
 typedef uint64_t shr_handle_t;