]> git.proxmox.com Git - mirror_qemu.git/commit
scripts/qemu.py: introduce set_console() method
authorCleber Rosa <crosa@redhat.com>
Wed, 30 May 2018 18:41:55 +0000 (14:41 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Jun 2018 19:10:11 +0000 (16:10 -0300)
commit22dea9db2baf72a79782c748c57e2d87b06234d5
treef5b464095207c03863c0c25eded9fdd085abd88b
parent7b1bd11cff0915a1266c34bdfb66d70f6372340d
scripts/qemu.py: introduce set_console() method

The set_console() method is intended to ease higher level use cases
that require a console device.

The amount of intelligence is limited on purpose, requiring either the
device type explicitly, or the existence of a machine (pattern)
definition.

Because of the console device type selection criteria (by machine
type), users should also be able to define that.  It'll then be used
for both '-machine' and for the console device type selection.

Users of the set_console() method will certainly be interested in
accessing the console device, and for that a console_socket property
has been added.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20180530184156.15634-5-crosa@redhat.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py