OSDN Git Service

xen/x86: add diagnostic printout to xen_mc_flush() in case of error
authorJuergen Gross <jgross@suse.com>
Fri, 23 Nov 2018 16:24:51 +0000 (17:24 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 29 Nov 2018 16:53:16 +0000 (17:53 +0100)
commita7b403104e17209ea71eea59d4a71bf9e0d8cb83
treebd7131d6f10ab30b62d72b904fa2f76e09875416
parentf2a5fef1248beccacec0deecb67c1be693d72ae6
xen/x86: add diagnostic printout to xen_mc_flush() in case of error

Failure of an element of a Xen multicall is signalled via a WARN()
only if the kernel is compiled with MC_DEBUG. It is impossible to
know which element failed and why it did so.

Change that by printing the related information even without MC_DEBUG,
even if maybe in some limited form (e.g. without information which
caller produced the failing element).

Move the printing out of the switch statement in order to have the
same information for a single call.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/multicalls.c