Skip to contentSkip to conversation

disable automatic loading of sgabios when -nographic

PATCH Applied Paolo Bonzini 2 participants 4 messages Nov 3, 2011 – Dec 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 disable automatic loading of sgabios when -nographic

sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0, let's disable the automatic loading of the option ROM in -nographic mode. We can put it back for 1.1.

---
Requested by Anthony on IRC.

 hw/pc.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
hw/pc.c +0 -9
index eb4c2d8..1024465 100644
@@ -1104,15 +1104,6 @@ void pc_vga_init(PCIBus *pci_bus)
             isa_vga_init();
         }
     }
-
-    /*
-     * sga does not suppress normal vga output. So a machine can have both a
-     * vga card and sga manually enabled. Output will be seen on both.
-     * For nographic case, sga is enabled at all times
-     */
-    if (display_type == DT_NOGRAPHIC) {
-        isa_create_simple("sga");
-    }
 }
 
 static void cpu_request_exit(void *opaque, int irq, int level)
Signature · 1 line
1.7.6.4
#1 lore raw
Quoted 5 lines · Paolo Bonzini

sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0, let's disable the automatic loading of the option ROM in -nographic mode. We can put it back for 1.1.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 26 lines

---
Requested by Anthony on IRC.

  hw/pc.c |    9 ---------
  1 files changed, 0 insertions(+), 9 deletions(-)
hw/pc.c +0 -9
index eb4c2d8..1024465 100644
@@ -1104,15 +1104,6 @@ void pc_vga_init(PCIBus *pci_bus)
              isa_vga_init();
          }
      }
-
-    /*
-     * sga does not suppress normal vga output. So a machine can have both a
-     * vga card and sga manually enabled. Output will be seen on both.
-     * For nographic case, sga is enabled at all times
-     */
-    if (display_type == DT_NOGRAPHIC) {
-        isa_create_simple("sga");
-    }
  }
 
  static void cpu_request_exit(void *opaque, int irq, int level)
#2 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 6 lines · Paolo Bonzini

sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0,
let's disable the automatic loading of the option ROM in -nographic mode. We can put it back for 1.1.

Applied. Thanks.

Can you please revert it for 1.1? Thanks!

Paolo

Quoted 29 lines
Quoted 26 lines

---
Requested by Anthony on IRC.

hw/pc.c | 9 ---------

1 files changed, 0 insertions(+), 9 deletions(-)
hw/pc.c +0 -9
index eb4c2d8..1024465 100644
@@ -1104,15 +1104,6 @@ void pc_vga_init(PCIBus *pci_bus)
 isa_vga_init();
 }
 }
-
- /*
- * sga does not suppress normal vga output. So a machine can have both a
- * vga card and sga manually enabled. Output will be seen on both.
- * For nographic case, sga is enabled at all times
- */
- if (display_type == DT_NOGRAPHIC) {
- isa_create_simple("sga");
- }
 }
 
 static void cpu_request_exit(void *opaque, int irq, int level)
#3 lore raw
Quoted 7 lines · Paolo Bonzini
Quoted 6 lines · Anthony Liguori
Quoted 5 lines · Paolo Bonzini

sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0,
let's disable the automatic loading of the option ROM in -nographic mode. We can put it back for 1.1.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Applied. Thanks.

Can you please revert it for 1.1? Thanks!

Can you send a patch?

Regards,

Anthony Liguori

Quoted 33 lines

Paolo

Quoted 29 lines
Quoted 26 lines

---
Requested by Anthony on IRC.

hw/pc.c | 9 ---------

1 files changed, 0 insertions(+), 9 deletions(-)
hw/pc.c +0 -9
index eb4c2d8..1024465 100644
@@ -1104,15 +1104,6 @@ void pc_vga_init(PCIBus *pci_bus)
 isa_vga_init();
 }
 }
-
- /*
- * sga does not suppress normal vga output. So a machine can have both a
- * vga card and sga manually enabled. Output will be seen on both.
- * For nographic case, sga is enabled at all times
- */
- if (display_type == DT_NOGRAPHIC) {
- isa_create_simple("sga");
- }
 }
 
 static void cpu_request_exit(void *opaque, int irq, int level)