Skip to content

Commit

Permalink
lguest: always put console in PCI slot #1.
Browse files Browse the repository at this point in the history
This simplifies the early probe.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Feb 11, 2015
1 parent 59eba78 commit 713e3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 713e3f7

Please sign in to comment.