[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v5 06/17] xen/mem_event: Relax error condition on debug builds
A faulty tool stack can brick a debug hypervisor. Unpleasant while dev/test. Suggested-by: Andres Lagar Cavilla <andres@xxxxxxxxxxxxxxxx> Signed-off-by: Tamas K Lengyel <tklengyel@xxxxxxxxxxxxx> --- v5: Make printout greppable. v4: Add domain_id to the printout. v3: Switch to gdprintk and print the vCPU id as well. --- xen/common/mem_event.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/common/mem_event.c b/xen/common/mem_event.c index bf1c415..b232189 100644 --- a/xen/common/mem_event.c +++ b/xen/common/mem_event.c @@ -278,7 +278,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); -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |