diff options
| author | Robert Foley | 2020-07-01 15:56:24 +0200 |
|---|---|---|
| committer | Alex Bennée | 2020-07-11 16:53:00 +0200 |
| commit | 0fc8f660c5c0d7b4513805f4798e97e4c371e486 (patch) | |
| tree | 6746a8c269a2fdae2d4a8a3dbcd46e0512c6a7cf /tests/vm/Makefile.include | |
| parent | tests/vm: change scripts to use self._config (diff) | |
| download | qemu-0fc8f660c5c0d7b4513805f4798e97e4c371e486.tar.gz qemu-0fc8f660c5c0d7b4513805f4798e97e4c371e486.tar.xz qemu-0fc8f660c5c0d7b4513805f4798e97e4c371e486.zip | |
python/qemu: Add ConsoleSocket for optional use in QEMUMachine
We add the ConsoleSocket object, which has a socket interface
and which will consume all arriving characters on the
socket, placing them into an in memory buffer.
This will also provide those chars via recv() as
would a regular socket.
ConsoleSocket also has the option of dumping
the console bytes to a log file.
We also give QEMUMachine the option of using ConsoleSocket
to drain and to use for logging console to a file.
By default QEMUMachine does not use ConsoleSocket.
This is added in preparation for use by basevm.py in a later commit.
This is a workaround we found was needed for basevm.py since
there is a known issue where QEMU will hang waiting
for console characters to be consumed.
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Peter Puhov <peter.puhov@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200601211421.1277-9-robert.foley@linaro.org>
Message-Id: <20200701135652.1366-13-alex.bennee@linaro.org>
Diffstat (limited to 'tests/vm/Makefile.include')
0 files changed, 0 insertions, 0 deletions
