Skip to content
Snippets Groups Projects
  1. Jul 27, 2020
  2. Jul 25, 2020
  3. Jul 14, 2020
  4. Jul 11, 2020
    • Robert Foley's avatar
      python/qemu: Add ConsoleSocket for optional use in QEMUMachine · 0fc8f660
      Robert Foley authored
      
      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: default avatarRobert Foley <robert.foley@linaro.org>
      Reviewed-by: default avatarPeter Puhov <peter.puhov@linaro.org>
      Acked-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20200601211421.1277-9-robert.foley@linaro.org>
      Message-Id: <20200701135652.1366-13-alex.bennee@linaro.org>
      0fc8f660
  5. May 31, 2020
  6. Mar 21, 2020
  7. Mar 17, 2020
  8. Feb 07, 2020
  9. Dec 16, 2019
Loading