[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/18] scripts/qemu.py: support adding a console
From: |
Caio Carrara |
Subject: |
Re: [Qemu-devel] [PATCH 11/18] scripts/qemu.py: support adding a console with the default serial device |
Date: |
Mon, 21 Jan 2019 18:29:16 -0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Thu, Jan 17, 2019 at 01:56:21PM -0500, Cleber Rosa wrote:
> The set_console() utility function traditionally adds a device either
> based on the explicitly given device type, or based on the machine type,
> a known good type of device.
>
> But, for a number of machine types, it may be impossible or
> inconvenient to add the devices my means of "-device" command line
> options, and then it may better to just use the "-serial" option and
> let QEMU itself, based on the machine type, set the device
> accordingly.
>
> To achieve that, the behavior of set_console() now flags the intention
> to add a console device on launch(), and if no explicit device type is
> given, and there's no definition on CONSOLE_DEV_TYPES, the "-serial"
> is going to be added to the QEMU command line, instead of raising
> exceptions.
>
> Signed-off-by: Cleber Rosa <address@hidden>
Reviewed-by: Caio Carrara <address@hidden>
> ---
> scripts/qemu.py | 28 +++++++++++++++-------------
> 1 file changed, 15 insertions(+), 13 deletions(-)
>
{...}
>
--
Caio Carrara
Software Engineer, Virt Team - Red Hat
address@hidden
- [Qemu-devel] [PATCH 00/18] Acceptance Tests: target architecture support, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 02/18] Acceptance tests: show avocado test execution by default, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 09/18] Boot Linux Console Test: update the x86_64 kernel, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 11/18] scripts/qemu.py: support adding a console with the default serial device, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 12/18] Boot Linux Console Test: add a test for mips + malta, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 04/18] Acceptance tests: fix doc reference to avocado_qemu directory, Cleber Rosa, 2019/01/17
- [Qemu-devel] [PATCH 05/18] Acceptance tests: introduce arch parameter and attribute, Cleber Rosa, 2019/01/17