tools/xenstore: add error indicator to ring page
authorJuergen Gross <jgross@suse.com>
Fri, 18 Feb 2022 08:02:48 +0000 (09:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 08:02:48 +0000 (09:02 +0100)
commitaeaed47023377a20d0f77c82e54f504e99468fb6
tree4f4f48da2bd5c0ead5215c0b1709d53ce6e802c7
parent6bd1b4d35c05c21a78bf00f610587ce8a75cb5c2
tools/xenstore: add error indicator to ring page

In case Xenstore is detecting a malicious ring page modification (e.g.
an invalid producer or consumer index set by a guest) it will ignore
the connection of that guest in future.

Add a new error field to the ring page indicating that case. Add a new
feature bit in order to signal the presence of that error field.

Move the ignore_connection() function to xenstored_domain.c in order
to be able to access the ring page for setting the error indicator.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
docs/misc/xenstore-ring.txt
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_domain.h
xen/include/public/io/xs_wire.h