Skip to contentSkip to conversation

pc: disable the BOCHS BIOS panic port

PATCH Applied Bernhard Kohl 4 participants 4 messages Nov 16, 2010 – Nov 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pc: disable the BOCHS BIOS panic port

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
Changes v1 -> v2:
Keep the ports silent. Don't print debug output if DEBUG_BIOS is enabled which might be confusing.

---
 hw/pc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hw/pc.c +2 -2
index 3bf3862..76eabe8 100644
@@ -434,8 +434,8 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
         /* Bochs BIOS messages */
     case 0x400:
     case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
+        /* used to be panic, now unused */
+        break;
     case 0x402:
     case 0x403:
 #ifdef DEBUG_BIOS
Signature · 1 line
1.7.2.3
Reviewed-by on v2 1/1
#2 lore raw
In reply to Bernhard Kohl
Quoted 17 lines · Bernhard Kohl

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

---
Changes v1 -> v2:
Keep the ports silent. Don't print debug output if DEBUG_BIOS is enabled which might be confusing.

---
  hw/pc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
hw/pc.c +0 -0
index 3bf3862..76eabe8 100644

hw/pc.c static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) · line 441

Quoted 10 lines
hw/pc.c +2 -2
@@ -434,8 +434,8 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
          /* Bochs BIOS messages */
      case 0x400:
      case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
+        /* used to be panic, now unused */
+        break;
      case 0x402:
      case 0x403:
  #ifdef DEBUG_BIOS

Paolo

#3 lore raw
In reply to Bernhard Kohl
Quoted 5 lines · Bernhard Kohl

We have an OS which writes to port 0x400 when probing for special hardware. This causes an exit of the VM. With SeaBIOS this port isn't used anyway.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 24 lines

---
Changes v1 -> v2:
Keep the ports silent. Don't print debug output if DEBUG_BIOS is enabled which might be confusing.

---
  hw/pc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
hw/pc.c +2 -2
index 3bf3862..76eabe8 100644
@@ -434,8 +434,8 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
          /* Bochs BIOS messages */
      case 0x400:
      case 0x401:
-        fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
-        exit(1);
+        /* used to be panic, now unused */
+        break;
      case 0x402:
      case 0x403:
  #ifdef DEBUG_BIOS