]> xenbits.xensource.com Git - xen.git/commitdiff
mem_event: relax error condition on debug builds
authorTamas K Lengyel <tklengyel@sec.in.tum.de>
Fri, 26 Sep 2014 14:29:34 +0000 (16:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2014 14:29:34 +0000 (16:29 +0200)
A faulty tool stack can brick a debug hypervisor. Unpleasant while dev/test.

Suggested-by: Andres Lagar Cavilla <andres@lagarcavilla.org>
Signed-off-by: Tamas K Lengyel <tklengyel@sec.in.tum.de>
Acked-by: Tim Deegan <tim@xen.org>
xen/common/mem_event.c

index a7e97670a38e114089d70511f1498898ba2486ef..a0f75b2ac3502275598be7af8d4713ad7f9f0f8d 100644 (file)
@@ -285,7 +285,11 @@ void mem_event_put_request(struct domain *d,
     if ( current->domain != d )
     {
         req->flags |= MEM_EVENT_FLAG_FOREIGN;
-        ASSERT( !(req->flags & MEM_EVENT_FLAG_VCPU_PAUSED) );
+#ifndef NDEBUG
+        if ( !(req->flags & MEM_EVENT_FLAG_VCPU_PAUSED) )
+            gdprintk(XENLOG_G_WARNING, "d%dv%d was not paused.\n",
+                     d->domain_id, req->vcpu_id);
+#endif
     }
 
     mem_event_ring_lock(med);