diff options
author | Anton Nefedov | 2017-07-06 14:09:00 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-07-14 11:04:34 +0200 |
commit | 1a29cc8f5ebd657e159dbe4be340102595846d42 (patch) | |
tree | 0ff4daeb09242021da568ccfc116c21e9b3c282c /bsd-user/qemu.h | |
parent | serial: move TIOCM update to a separate function (diff) | |
download | qemu-1a29cc8f5ebd657e159dbe4be340102595846d42.tar.gz qemu-1a29cc8f5ebd657e159dbe4be340102595846d42.tar.xz qemu-1a29cc8f5ebd657e159dbe4be340102595846d42.zip |
serial: chardev hotswap support
This allows to change the port's backend runtime, e.g. change it from
file to a socket making it possible to establish a debug session with
WinDbg
> qemu-system [..] -chardev file,id=charchannel2,path=/tmp/charchannel2 \
-device isa-serial,chardev=charchannel2,id=channel2
QEMU 2.9.50 monitor - type 'help' for more information
(qemu) chardev-change charchannel2 \
socket,host=127.0.0.1,port=4242,server,nowait
For a backend change, a number of ioctls has to be replayed to sync
the current setup of a frontend to a backend tty. This is hopefully
enough so we don't have to track, store and replay the whole original
control byte sequence.
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1499342940-56739-14-git-send-email-anton.nefedov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'bsd-user/qemu.h')
0 files changed, 0 insertions, 0 deletions