|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/8] xsm: only log dummy override if not setting up dummy_xsm_ops
The log messages from dummy overrides appear on every boot with XSM
enabled, and are just noise when filling in the dummy_xsm_ops structure.
Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
xen/xsm/dummy.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/xen/xsm/dummy.c b/xen/xsm/dummy.c
index a629396..d6f2da0 100644
--- a/xen/xsm/dummy.c
+++ b/xen/xsm/dummy.c
@@ -469,14 +469,15 @@ static int dummy_ioport_permission (struct domain *d,
uint32_t s, uint32_t e, ui
struct xsm_operations dummy_xsm_ops;
-#define set_to_dummy_if_null(ops, function) \
- do { \
- if ( !ops->function ) \
- { \
- ops->function = dummy_##function; \
- dprintk(XENLOG_DEBUG, "Had to override the " #function \
- " security operation with the dummy one.\n"); \
- } \
+#define set_to_dummy_if_null(ops, function) \
+ do { \
+ if ( !ops->function ) \
+ { \
+ ops->function = dummy_##function; \
+ if (ops != &dummy_xsm_ops) \
+ dprintk(XENLOG_DEBUG, "Had to override the " #function \
+ " security operation with the dummy one.\n"); \
+ } \
} while (0)
void xsm_fixup_ops (struct xsm_operations *ops)
--
1.7.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |