Mailing List Archive

[xen master] x86/mem_sharing: enable mem_share audit mode only in debug builds
commit a23654d77d3ecd6d5085217dde99564e63160ecf
Author: Tamas K Lengyel <tamas@tklengyel.com>
AuthorDate: Fri Jul 19 13:49:26 2019 +0200
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Fri Jul 19 13:49:26 2019 +0200

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

Improves performance for release builds.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
---
xen/include/asm-x86/mem_sharing.h | 4 ++++
1 file changed, 4 insertions(+)

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 <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;

--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog