[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 4/5] monitor: Avoid readline functions in QMP
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH 4/5] monitor: Avoid readline functions in QMP |
Date: |
Tue, 15 Dec 2009 15:17:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Luiz Capitulino wrote:
> On Tue, 15 Dec 2009 10:54:23 +0100
> Markus Armbruster <address@hidden> wrote:
>
>> Markus Armbruster <address@hidden> writes:
>>
>>> Luiz Capitulino <address@hidden> writes:
>>>
>>>> The monitor_read_command() function is readline specific
>>>> and should only be used when readline is available.
>>>>
>>>> Signed-off-by: Luiz Capitulino <address@hidden>
>>> I figure this bug breaks password entry (VNC and block) on non-readline
>>> monitors. Suspect commit cde76ee1.
>
> I can only assume that it didn't matter until now.
>
>> PS: Subject is wrong. gdbserver_start() creates a monitor with
>> MONITOR_USE_READLINE off, so it's not just QMP.
>
> Ditto.
>
Right. monitor_read_password was never supposed to be used on monitors
that have not readline state and is reported as error by
monitor_read_password. So far the only monitor that was lacking such
state was the gdbserver, now we also have QMP. The latter handles this
separately, the former should still fail loudly when such commands are
issued.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
[Qemu-devel] [PATCH 5/5] monitor: Catch printing to non-existent monitor, Luiz Capitulino, 2009/12/14