mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
chardev: add pty chardev support to chardev-add (qmp)
The ptsname is returned directly, so there is no need to use query-chardev to figure the pty device path. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
f6bd5d6ec5
commit
0a1a7fabda
3 changed files with 20 additions and 1 deletions
|
@ -2685,6 +2685,11 @@ Examples:
|
|||
"data" : { "out" : "/tmp/bar.log" } } } }
|
||||
<- { "return": {} }
|
||||
|
||||
-> { "execute" : "chardev-add",
|
||||
"arguments" : { "id" : "baz",
|
||||
"backend" : { "type" : "pty", "data" : {} } } }
|
||||
<- { "return": { "pty" : "/dev/pty/42" } }
|
||||
|
||||
EQMP
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue