]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
pxe: Don't look for PXE ROMs when running as a DM
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 18 Sep 2009 15:32:58 +0000 (16:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Sep 2009 15:32:58 +0000 (16:32 +0100)
Searching for PXE ROMs in attached NICs is unnecessary as the ROM
that is used is included in the hvmloader binary. In the case where
there are only pass-through NICs it will cause the boot to fail
as the NICs are not known to qemu-xen at the time that this check is made.
In other words, without this change PXE boot from a pass-through
device will fail.

This has likely been broken since I changed around the pass-through
code so that devices passed-through at boot-time are handled by hot-plug.

Signed-off-by: Simon Horman <horms@verge.net.au>
vl.c

diff --git a/vl.c b/vl.c
index 06d966261188087d239e16e6c5003af4e9956f03..4a331f85abf5d055fff3755884e0f23ba1e8e3c8 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -5627,6 +5627,7 @@ int main(int argc, char **argv, char **envp)
     }
     net_client_check();
 
+#ifndef CONFIG_DM
 #ifdef TARGET_I386
     /* XXX: this should be moved in the PC machine instantiation code */
     if (net_boot != 0) {
@@ -5654,6 +5655,7 @@ int main(int argc, char **argv, char **envp)
            exit(1);
        }
     }
+#endif
 #endif
 
     /* init the bluetooth world */