xen/events: add per-xenbus device event statistics and settings
authorJuergen Gross <jgross@suse.com>
Fri, 19 Feb 2021 15:40:28 +0000 (16:40 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 23 Feb 2021 16:07:11 +0000 (10:07 -0600)
commit06f45fe96fcd81531b0bcb2a6115da563ae6dbd6
treee0004c9548d4612288b71f5fd541eab54fc63ead
parent7c70f3a7488d2fa62d32849d138bf2b8420fe788
xen/events: add per-xenbus device event statistics and settings

Add syfs nodes for each xenbus device showing event statistics (number
of events and spurious events, number of associated event channels)
and for setting a spurious event threshold in case a frontend is
sending too many events without being rogue on purpose.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210219154030.10892-7-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Documentation/ABI/testing/sysfs-devices-xenbus [new file with mode: 0644]
drivers/xen/events/events_base.c
drivers/xen/xenbus/xenbus_probe.c
include/xen/xenbus.h