]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lguest: always put console in PCI slot #1.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:55:01 +0000 (15:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 06:17:44 +0000 (16:47 +1030)
This simplifies the early probe.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/lguest/lguest.c

index e3c4d3d7dc2aa47cdc25b5cd306dfbeee95344f5..7cc1fed1094d2296f2fc59a82d1e9ef8c44eb5a8 100644 (file)
@@ -2773,6 +2773,9 @@ int main(int argc, char *argv[])
                }
        }
 
+       /* We always have a console device, and it's always device 1. */
+       setup_console();
+
        /* The options are fairly straight-forward */
        while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) {
                switch (c) {
@@ -2813,9 +2816,6 @@ int main(int argc, char *argv[])
 
        verbose("Guest base is at %p\n", guest_base);
 
-       /* We always have a console device */
-       setup_console();
-
        /* Initialize the (fake) PCI host bridge device. */
        init_pci_host_bridge();