OSDN Git Service

vl: disable default serial when xen-console is enabled
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 9 Nov 2023 11:23:54 +0000 (11:23 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 21 Nov 2023 11:44:52 +0000 (11:44 +0000)
If a Xen console is configured on the command line, do not add a default
serial port.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
system/vl.c

index 5af7ced..8109231 100644 (file)
@@ -198,6 +198,7 @@ static const struct {
     const char *driver;
     int *flag;
 } default_list[] = {
+    { .driver = "xen-console",          .flag = &default_serial    },
     { .driver = "isa-serial",           .flag = &default_serial    },
     { .driver = "isa-parallel",         .flag = &default_parallel  },
     { .driver = "isa-fdc",              .flag = &default_floppy    },