You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Armbruster
d2e49aad72
char: Fix socket with "type": "vsock" address
Watch this:
$ qemu-system-x86_64 -nodefaults -S -display none -qmp stdio
{"QMP": {"version": {"qemu": {"micro": 91, "minor": 8, "major": 2}, "package": " (v2.8.0-1195-gf84141e-dirty)"}, "capabilities": []}}
{ "execute": "qmp_capabilities" }
{"return": {}}
{ "execute": "chardev-add", "arguments": { "id": "chr0", "backend": { "type": "socket", "data": { "addr": { "type": "vsock", "data": { "cid": "CID", "port": "P" }}}}}}
Aborted (core dumped)
Crashes because SocketAddress_to_str() is blissfully unaware of
SOCKET_ADDRESS_KIND_VSOCK. Fix that. Pick the output format to match
socket_parse(), just like the existing formats.
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1490895797-29094-3-git-send-email-armbru@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
9 years ago |
| .. |
|
Makefile.objs
|
char: move parallel chardev in its own file
|
9 years ago |
|
char-console.c
|
char: move console in its own file
|
9 years ago |
|
char-fd.c
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |
|
char-fd.h
|
char: move fd chardev in its own file
|
9 years ago |
|
char-file.c
|
char: move file chardev in its own file
|
9 years ago |
|
char-io.c
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |
|
char-io.h
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |
|
char-mux.c
|
char: move mux to its own file
|
9 years ago |
|
char-mux.h
|
char: move mux to its own file
|
9 years ago |
|
char-null.c
|
char: move null chardev to its own file
|
9 years ago |
|
char-parallel.c
|
char: move parallel chardev in its own file
|
9 years ago |
|
char-parallel.h
|
char: move parallel chardev in its own file
|
9 years ago |
|
char-pipe.c
|
char: move pipe chardev in its own file
|
9 years ago |
|
char-pty.c
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |
|
char-ringbuf.c
|
char: move ringbuf/memory to its own file
|
9 years ago |
|
char-serial.c
|
char: move serial chardev to its own file
|
9 years ago |
|
char-serial.h
|
char: move serial chardev to its own file
|
9 years ago |
|
char-socket.c
|
char: Fix socket with "type": "vsock" address
|
9 years ago |
|
char-stdio.c
|
char: move stdio in its own file
|
9 years ago |
|
char-udp.c
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |
|
char-win-stdio.c
|
char: move win-stdio into its own file
|
9 years ago |
|
char-win-stdio.h
|
char: move win-stdio into its own file
|
9 years ago |
|
char-win.c
|
char: move win chardev base class in its own file
|
9 years ago |
|
char-win.h
|
char: move win chardev base class in its own file
|
9 years ago |
|
char.c
|
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
|
9 years ago |