In debug builds the hypervisor will deliberately clobber processed elements of the multicall structure. In order to ease diagnostic data printout in the affected guest only clobber elements which didn't return an error.
Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/common/multicall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/multicall.c b/xen/common/multicall.c index 5a199ebf8f..48622619ce 100644 --- a/xen/common/multicall.c +++ b/xen/common/multicall.c @@ -74,6 +74,7 @@ do_multicall( ASSERT_NOT_IN_ATOMIC(); #ifndef NDEBUG + if ( (long)mcs->call.result >= 0 ) { /* * Deliberately corrupt the contents of the multicall structure. -- 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel