]> xenbits.xensource.com Git - xen.git/commitdiff
docs: document xenconsole startup protocol
authorWei Liu <wei.liu2@citrix.com>
Mon, 1 Aug 2016 09:36:57 +0000 (10:36 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 8 Aug 2016 10:42:34 +0000 (11:42 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/misc/console.txt

index ed7b7956a6005a94f4c44d118360e02c0a447dda..16da805d0b05946cc21532724878e90ae5a4c375 100644 (file)
@@ -124,3 +124,9 @@ can only have one pv console with xenstored as backend (the stubdom
 could provide pv console backends to the hvm guest but then it would
 need another pv console connection for each console backend to export
 the pty to dom0).
+
+The xenconsole program supports a very simple protocol to notify parent about
+its readiness. If xenconsole (the client) is exec'ed and has been given a fd
+(normally the write end of a pipe) via --start-notify-fd option, it will
+write 0x00 to that fd after connecting to the guest but before entering the
+event loop. Parent can read from the read end of the fd to know the status.