qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v1 03/26] char-socket: fix the client mode when created t


From: Markus Armbruster
Subject: Re: [RFC PATCH v1 03/26] char-socket: fix the client mode when created through QMP
Date: Thu, 16 Apr 2020 08:03:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Adalbert Lazãr <address@hidden> writes:

> On Wed, 15 Apr 2020 16:11:14 +0200, Markus Armbruster <address@hidden> wrote:
>> Adalbert Lazãr <address@hidden> writes:
[...]
>> > Until this moment, I did not think that we can use "server=no" through QMP 
>> > :))
>> 
>> Start here:
>> 
>>     $ socat "READLINE,history=$HOME/.qmp_history,prompt=QMP>" 
>> UNIX-CONNECT:$HOME/work/images/test-qmp 
>>     {"QMP": {"version": {"qemu": {"micro": 92, "minor": 2, "major": 4}, 
>> "package": "v5.0.0-rc2-30-g25b0509e28"}, "capabilities": ["oob"]}}
>>     QMP>{"execute": "qmp_capabilities"}
>>     {"return": {}}
>>     QMP>{"execute":"chardev-add", "arguments": {"id":"foo", "backend": 
>> {"type": "socket", "data": {"addr": {"type": "inet", "data": {"host": 
>> "0.0.0.0", "port": "2445"}}, "server": false}}}}
>>     {"error": {"class": "GenericError", "desc": "Failed to connect socket: 
>> Connection refused"}}
>> 
>
> Thank you, Markus.
>
> I wanted to say that while I was writing the reply, I had an aha! moment and 
> I was
> amused that I have not thought to use server=no/false and I used the wrong 
> verb tense.

Happy to help!  Enjoy :)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]