From: Anthony Liguori <aliguori@us.ibm.com>
To: Jan Kiszka <jan.kiszka@siemens.com>, qemu-devel <qemu-devel@nongnu.org>
Cc: "Julien Grall" <julien.grall@citrix.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Avi Kivity" <avi@redhat.com>,
"Stefano Stabellini" <stefano.stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [PATCH] pc: Drop practically unused BOCHS BIOS debug ports
Date: Tue, 11 Sep 2012 10:06:41 -0500 [thread overview]
Message-ID: <87oblcr43i.fsf@codemonkey.ws> (raw)
In-Reply-To: <504F4CE1.7020405@siemens.com>
Jan Kiszka <jan.kiszka@siemens.com> writes:
> We have debugcon these days to listen on those ports that receive debug
> messages. Also drop the others that have no effect anymore.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
I'll pick this up after it goes through testing.
Regards,
Anthony Liguori
> ---
> hw/pc.c | 27 ---------------------------
> 1 files changed, 0 insertions(+), 27 deletions(-)
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 112739a..7e7e0e2 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -53,9 +53,6 @@
> #include "bitmap.h"
> #include "vga-pci.h"
>
> -/* output Bochs bios info messages */
> -//#define DEBUG_BIOS
> -
> /* debug PC/ISA interrupts */
> //#define DEBUG_IRQ
>
> @@ -534,17 +531,6 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
> static int shutdown_index = 0;
>
> switch(addr) {
> - /* Bochs BIOS messages */
> - case 0x400:
> - case 0x401:
> - /* used to be panic, now unused */
> - break;
> - case 0x402:
> - case 0x403:
> -#ifdef DEBUG_BIOS
> - fprintf(stderr, "%c", val);
> -#endif
> - break;
> case 0x8900:
> /* same as Bochs power off */
> if (val == shutdown_str[shutdown_index]) {
> @@ -558,16 +544,9 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val)
> }
> break;
>
> - /* LGPL'ed VGA BIOS messages */
> case 0x501:
> case 0x502:
> exit((val << 1) | 1);
> - case 0x500:
> - case 0x503:
> -#ifdef DEBUG_BIOS
> - fprintf(stderr, "%c", val);
> -#endif
> - break;
> }
> }
>
> @@ -596,17 +575,11 @@ static void *bochs_bios_init(void)
> uint64_t *numa_fw_cfg;
> int i, j;
>
> - register_ioport_write(0x400, 1, 2, bochs_bios_write, NULL);
> - register_ioport_write(0x401, 1, 2, bochs_bios_write, NULL);
> - register_ioport_write(0x402, 1, 1, bochs_bios_write, NULL);
> - register_ioport_write(0x403, 1, 1, bochs_bios_write, NULL);
> register_ioport_write(0x8900, 1, 1, bochs_bios_write, NULL);
>
> register_ioport_write(0x501, 1, 1, bochs_bios_write, NULL);
> register_ioport_write(0x501, 1, 2, bochs_bios_write, NULL);
> register_ioport_write(0x502, 1, 2, bochs_bios_write, NULL);
> - register_ioport_write(0x500, 1, 1, bochs_bios_write, NULL);
> - register_ioport_write(0x503, 1, 1, bochs_bios_write, NULL);
>
> fw_cfg = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0);
>
> --
> 1.7.3.4
next prev parent reply other threads:[~2012-09-11 15:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-11 14:38 [Qemu-devel] [PATCH] pc: Drop practically unused BOCHS BIOS debug ports Jan Kiszka
2012-09-11 14:48 ` Andreas Färber
2012-09-11 15:04 ` Jan Kiszka
2012-09-11 15:11 ` Andreas Färber
2012-09-11 15:27 ` Jan Kiszka
2012-09-11 15:06 ` Anthony Liguori [this message]
2012-09-17 18:25 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oblcr43i.fsf@codemonkey.ws \
--to=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=hpoussin@reactos.org \
--cc=jan.kiszka@siemens.com \
--cc=julien.grall@citrix.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.