2010-11-12 18:55:23 +01:00
|
|
|
Subject: xenpaging: print info when free request slots drop below 2
|
2010-10-20 23:00:35 +02:00
|
|
|
|
|
|
|
Add debugging aid to free request slots in the ring buffer.
|
|
|
|
It should not happen that the ring gets full, print info anyway if it happens.
|
|
|
|
|
2011-01-14 19:24:51 +01:00
|
|
|
(xen-unstable changeset: 22439:3bbb3969236c)
|
|
|
|
|
2010-10-20 23:00:35 +02:00
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
|
|
---
|
|
|
|
xen/arch/x86/mm/mem_event.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
--- xen-4.0.1-testing.orig/xen/arch/x86/mm/mem_event.c
|
|
|
|
+++ xen-4.0.1-testing/xen/arch/x86/mm/mem_event.c
|
|
|
|
@@ -168,6 +168,11 @@ int mem_event_check_ring(struct domain *
|
|
|
|
mem_event_ring_lock(d);
|
|
|
|
|
|
|
|
free_requests = RING_FREE_REQUESTS(&d->mem_event.front_ring);
|
2010-11-12 18:55:23 +01:00
|
|
|
+ if ( unlikely(free_requests < 2) )
|
2010-10-20 23:00:35 +02:00
|
|
|
+ {
|
|
|
|
+ gdprintk(XENLOG_INFO, "free request slots: %d\n", free_requests);
|
|
|
|
+ WARN_ON(free_requests == 0);
|
|
|
|
+ }
|
|
|
|
ring_full = free_requests < MEM_EVENT_RING_THRESHOLD;
|
|
|
|
|
|
|
|
if ( (current->domain->domain_id == d->domain_id) && ring_full )
|