Changes To QEMU monitor on unix domain socket
Not logged in

Changes to "QEMU monitor on unix domain socket" between 2015-07-18 20:48:37 and 2015-12-18 06:27:18

1
2
3
4
5
6
7
8


1
2
3
4
5
6
7
8
9
10








+
+
1.  QEMU handles "address already in use" error, and successifully rebinds to socket, which is left in the filesystem by previous invocation.

2.  Socket chardev should be created with nowait option, otherwise QEMU would wait until somebody connects to the socket before demonizing.

    Correct options to create socket **monitor** in the current directory:

        -chardev socket,server,nowait,path=monitor,id=monitor \
        -mon chardev=monitor,mode=readline \

3. QEMU doesn't handle EPIPE well, so if client want to disconnect and let other clients connect, it should shutdown the socket before closing. Otherwise next client might hang after connect.