* [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port
@ 2010-11-16 12:28 Bernhard Kohl
2010-11-16 13:16 ` [Qemu-devel] " Alexander Graf
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bernhard Kohl @ 2010-11-16 12:28 UTC (permalink / raw)
To: qemu-devel; +Cc: Bernhard Kohl, agraf
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.
Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
---
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(-)
diff --git a/hw/pc.c b/hw/pc.c
index 3bf3862..76eabe8 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -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
--
1.7.2.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: [PATCH v2] pc: disable the BOCHS BIOS panic port
2010-11-16 12:28 [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port Bernhard Kohl
@ 2010-11-16 13:16 ` Alexander Graf
2010-11-16 13:49 ` Paolo Bonzini
2010-11-21 15:20 ` [Qemu-devel] " Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2010-11-16 13:16 UTC (permalink / raw)
To: Bernhard Kohl; +Cc: qemu-devel
On 16.11.2010, at 13:28, Bernhard Kohl wrote:
> 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.
>
> Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: [PATCH v2] pc: disable the BOCHS BIOS panic port
2010-11-16 12:28 [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port Bernhard Kohl
2010-11-16 13:16 ` [Qemu-devel] " Alexander Graf
@ 2010-11-16 13:49 ` Paolo Bonzini
2010-11-21 15:20 ` [Qemu-devel] " Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2010-11-16 13:49 UTC (permalink / raw)
To: Bernhard Kohl; +Cc: qemu-devel, agraf
On 11/16/2010 01:28 PM, Bernhard Kohl wrote:
> 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.
>
> Signed-off-by: Bernhard Kohl<bernhard.kohl@nsn.com>
> ---
> 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(-)
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 3bf3862..76eabe8 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -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
Reviewed-By: Paolo Bonzini <pbonzini@redhat.com>
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port
2010-11-16 12:28 [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port Bernhard Kohl
2010-11-16 13:16 ` [Qemu-devel] " Alexander Graf
2010-11-16 13:49 ` Paolo Bonzini
@ 2010-11-21 15:20 ` Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2010-11-21 15:20 UTC (permalink / raw)
To: Bernhard Kohl; +Cc: qemu-devel, agraf
On 11/16/2010 06:28 AM, Bernhard Kohl wrote:
> 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.
>
> Signed-off-by: Bernhard Kohl<bernhard.kohl@nsn.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> 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(-)
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 3bf3862..76eabe8 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-21 15:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-16 12:28 [Qemu-devel] [PATCH v2] pc: disable the BOCHS BIOS panic port Bernhard Kohl
2010-11-16 13:16 ` [Qemu-devel] " Alexander Graf
2010-11-16 13:49 ` Paolo Bonzini
2010-11-21 15:20 ` [Qemu-devel] " Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).