Blame qemu-0.9.0-nic-defaults.patch
|
Daniel P. Berrange |
304b40 |
diff -rup qemu-0.9.0.orig/hw/pc.c qemu-0.9.0.new/hw/pc.c
|
|
Daniel P. Berrange |
304b40 |
--- qemu-0.9.0.orig/hw/pc.c 2007-08-28 11:35:35.000000000 -0400
|
|
Daniel P. Berrange |
304b40 |
+++ qemu-0.9.0.new/hw/pc.c 2007-08-28 11:36:18.000000000 -0400
|
|
Daniel P. Berrange |
304b40 |
@@ -682,7 +682,7 @@ static void pc_init1(int ram_size, int v
|
|
Daniel P. Berrange |
304b40 |
nd = &nd_table[i];
|
|
Daniel P. Berrange |
304b40 |
if (!nd->model) {
|
|
Daniel P. Berrange |
304b40 |
if (pci_enabled) {
|
|
Daniel P. Berrange |
304b40 |
- nd->model = "ne2k_pci";
|
|
Daniel P. Berrange |
304b40 |
+ nd->model = "rtl8139";
|
|
Daniel P. Berrange |
304b40 |
} else {
|
|
Daniel P. Berrange |
304b40 |
nd->model = "ne2k_isa";
|
|
Daniel P. Berrange |
304b40 |
}
|
|
Daniel P. Berrange |
304b40 |
diff -rup qemu-0.9.0.orig/vl.c qemu-0.9.0.new/vl.c
|
|
Daniel P. Berrange |
304b40 |
--- qemu-0.9.0.orig/vl.c 2007-08-28 11:35:35.000000000 -0400
|
|
Daniel P. Berrange |
304b40 |
+++ qemu-0.9.0.new/vl.c 2007-08-28 11:36:18.000000000 -0400
|
|
Daniel P. Berrange |
304b40 |
@@ -7082,7 +7082,7 @@ int main(int argc, char **argv)
|
|
Daniel P. Berrange |
304b40 |
const char *model = nd_table[i].model;
|
|
Daniel P. Berrange |
304b40 |
char buf[1024];
|
|
Daniel P. Berrange |
304b40 |
if (model == NULL)
|
|
Daniel P. Berrange |
304b40 |
- model = "ne2k_pci";
|
|
Daniel P. Berrange |
304b40 |
+ model = "rtl8139";
|
|
Daniel P. Berrange |
304b40 |
snprintf(buf, sizeof(buf), "%s/pxe-%s.bin", bios_dir, model);
|
|
Daniel P. Berrange |
304b40 |
if (get_image_size(buf) > 0) {
|
|
Daniel P. Berrange |
304b40 |
option_rom[nb_option_roms] = strdup(buf);
|