xen/xenpaging.mem_event_check_ring-free_requests.patch
Charles Arnold 0c76f22ef1 - Update to Xen 4.0.2 rc2-pre, changeset 21443
- bnc#633573 - System fail to boot after running several warm
  reboot tests
  22749-vtd-workarounds.patch
- Upstream patches from Jan
  22744-ept-pod-locking.patch
  22777-vtd-ats-fixes.patch
  22781-pod-hap-logdirty.patch
  22782-x86-emul-smsw.patch
  22789-i386-no-x2apic.patch
  22790-svm-resume-migrate-pirqs.patch
  22816-x86-pirq-drop-priv-check.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=94
2011-02-04 21:19:54 +00:00

30 lines
1.0 KiB
Diff

Subject: xenpaging: print info when free request slots drop below 2
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.
(xen-unstable changeset: 22439:3bbb3969236c)
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
xen/arch/x86/mm/mem_event.c | 5 +++++
1 file changed, 5 insertions(+)
Index: xen-4.0.2-testing/xen/arch/x86/mm/mem_event.c
===================================================================
--- xen-4.0.2-testing.orig/xen/arch/x86/mm/mem_event.c
+++ xen-4.0.2-testing/xen/arch/x86/mm/mem_event.c
@@ -152,6 +152,11 @@ int mem_event_check_ring(struct domain *
mem_event_ring_lock(d);
free_requests = RING_FREE_REQUESTS(&d->mem_event.front_ring);
+ if ( unlikely(free_requests < 2) )
+ {
+ gdprintk(XENLOG_INFO, "free request slots: %d\n", free_requests);
+ WARN_ON(free_requests == 0);
+ }
ring_full = free_requests < MEM_EVENT_RING_THRESHOLD;
if ( (curr->domain->domain_id == d->domain_id) && ring_full )