projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6ad54
)
x86/mem_sharing: enable mem_share audit mode only in debug builds
author
Tamas K Lengyel
<tamas@tklengyel.com>
Fri, 19 Jul 2019 11:49:26 +0000
(13:49 +0200)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/include/asm-x86/mem_sharing.h
b/xen/include/asm-x86/mem_sharing.h
index 9f9f7e93e3ea2c9b623671049f568c1aabe5501e..afd0c172926ddf4c020f2c22bb256d7c8a8d93af 100644
(file)
--- a/
xen/include/asm-x86/mem_sharing.h
+++ b/
xen/include/asm-x86/mem_sharing.h
@@
-25,7
+25,11
@@
#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;