mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
add virtio-console cmdline option (Christian Ehrhardt)
This patch adds the typical qemu console command line switch to the virtio console. using -virtioconsole ARG it can now be specified what output a guest hvc should be redirected to. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6317 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
970d878c54
commit
51ecf1368d
1 changed files with 10 additions and 0 deletions
10
vl.c
10
vl.c
|
@ -4062,6 +4062,7 @@ enum {
|
|||
QEMU_OPTION_echr,
|
||||
QEMU_OPTION_monitor,
|
||||
QEMU_OPTION_serial,
|
||||
QEMU_OPTION_virtiocon,
|
||||
QEMU_OPTION_parallel,
|
||||
QEMU_OPTION_loadvm,
|
||||
QEMU_OPTION_full_screen,
|
||||
|
@ -4171,6 +4172,7 @@ static const QEMUOption qemu_options[] = {
|
|||
{ "echr", HAS_ARG, QEMU_OPTION_echr },
|
||||
{ "monitor", HAS_ARG, QEMU_OPTION_monitor },
|
||||
{ "serial", HAS_ARG, QEMU_OPTION_serial },
|
||||
{ "virtioconsole", HAS_ARG, QEMU_OPTION_virtiocon },
|
||||
{ "parallel", HAS_ARG, QEMU_OPTION_parallel },
|
||||
{ "loadvm", HAS_ARG, QEMU_OPTION_loadvm },
|
||||
{ "full-screen", 0, QEMU_OPTION_full_screen },
|
||||
|
@ -4969,6 +4971,14 @@ int main(int argc, char **argv, char **envp)
|
|||
serial_devices[serial_device_index] = optarg;
|
||||
serial_device_index++;
|
||||
break;
|
||||
case QEMU_OPTION_virtiocon:
|
||||
if (virtio_console_index >= MAX_VIRTIO_CONSOLES) {
|
||||
fprintf(stderr, "qemu: too many virtio consoles\n");
|
||||
exit(1);
|
||||
}
|
||||
virtio_consoles[virtio_console_index] = optarg;
|
||||
virtio_console_index++;
|
||||
break;
|
||||
case QEMU_OPTION_parallel:
|
||||
if (parallel_device_index >= MAX_PARALLEL_PORTS) {
|
||||
fprintf(stderr, "qemu: too many parallel ports\n");
|
||||
|
|
Loading…
Reference in a new issue