[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 :)
[RFC PATCH v1 08/26] kvm: add VM introspection usage documentation, Adalbert Lazăr, 2020/04/14
[RFC PATCH v1 04/26] char-socket: add 'reconnecting' property, Adalbert Lazăr, 2020/04/14
[RFC PATCH v1 06/26] E820: extend the table access interface, Adalbert Lazăr, 2020/04/14
[RFC PATCH v1 07/26] linux-headers: update with VM introspection interface, Adalbert Lazăr, 2020/04/14
[RFC PATCH v1 05/26] char-socket: add 'fd' property, Adalbert Lazăr, 2020/04/14
[RFC PATCH v1 13/26] kvm: vmi: block the object destruction if the chardev is connected, Adalbert Lazăr, 2020/04/14