viridian: log initial invocation of each type of hypercall
authorPaul Durrant <pdurrant@amazon.com>
Fri, 4 Dec 2020 12:15:38 +0000 (13:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Dec 2020 12:15:38 +0000 (13:15 +0100)
commit30d3cc449338546134b18ebcc2b4b435a794da17
tree634b994736b7d2a5178c92ce4f498ff7f38645d9
parent9afa867d42ba1818ef0c69f787edc573c11f1f0f
viridian: log initial invocation of each type of hypercall

To make is simpler to observe which viridian hypercalls are issued by a
particular Windows guest, this patch adds a per-domain mask to track them.
Each type of hypercall causes a different bit to be set in the mask and
when the bit transitions from clear to set, a log line is emitted showing
the name of the hypercall and the domain that issued it.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Wei Liu <wl@xen.org>
xen/arch/x86/hvm/viridian/viridian.c
xen/include/asm-x86/hvm/viridian.h