aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lguest
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-02-10 23:55:01 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-02-11 01:17:44 -0500
commit713e3f72244cb67fe1ad5c82a061c0b1be2f2fc5 (patch)
tree91674aa9a87dea89cd857749b63e9df69374ea24 /tools/lguest
parent59eba788db298c3597728774dc3d0f16bdc8a1a4 (diff)
lguest: always put console in PCI slot #1.
This simplifies the early probe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/lguest')
-rw-r--r--tools/lguest/lguest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index e3c4d3d7dc2a..7cc1fed1094d 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -2773,6 +2773,9 @@ int main(int argc, char *argv[])
2773 } 2773 }
2774 } 2774 }
2775 2775
2776 /* We always have a console device, and it's always device 1. */
2777 setup_console();
2778
2776 /* The options are fairly straight-forward */ 2779 /* The options are fairly straight-forward */
2777 while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) { 2780 while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) {
2778 switch (c) { 2781 switch (c) {
@@ -2813,9 +2816,6 @@ int main(int argc, char *argv[])
2813 2816
2814 verbose("Guest base is at %p\n", guest_base); 2817 verbose("Guest base is at %p\n", guest_base);
2815 2818
2816 /* We always have a console device */
2817 setup_console();
2818
2819 /* Initialize the (fake) PCI host bridge device. */ 2819 /* Initialize the (fake) PCI host bridge device. */
2820 init_pci_host_bridge(); 2820 init_pci_host_bridge();
2821 2821