From: Ben Guthro <bguthro@virtualiron.com>
To: xen-devel <xen-devel@lists.xensource.com>
Cc: gary Grebus <ggrebus@virtualiron.com>
Subject: [PATCH][QEMU] limit mmio messages
Date: Wed, 24 Oct 2007 17:02:01 -0400 [thread overview]
Message-ID: <471FB2C9.7080903@virtualiron.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
Improve/limit the messages for unexpected mmio accesses to the platform
device.
Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Signed-off-by: Gary Grebus <ggrebus@virtualiron.com>
[-- Attachment #2: qemu-platform-mmio-msgs.patch --]
[-- Type: text/x-patch, Size: 1033 bytes --]
diff -r 0acbc89f2486 tools/ioemu/hw/xen_platform.c
--- a/tools/ioemu/hw/xen_platform.c Wed Aug 08 18:15:07 2007 -0400
+++ b/tools/ioemu/hw/xen_platform.c Wed Aug 08 18:15:07 2007 -0400
@@ -37,14 +37,24 @@ static void platform_ioport_map(PCIDevic
static uint32_t platform_mmio_read(void *opaque, target_phys_addr_t addr)
{
- fprintf(logfile, "Warning: try read from xen platform mmio space\n");
+ static int warnings = 0;
+ if (warnings < 5) {
+ fprintf(logfile, "Warning: attempted read from physical address "
+ "0x%lx in xen platform mmio space\n", addr);
+ warnings++;
+ }
return 0;
}
static void platform_mmio_write(void *opaque, target_phys_addr_t addr,
uint32_t val)
{
- fprintf(logfile, "Warning: try write to xen platform mmio space\n");
+ static int warnings = 0;
+ if (warnings < 5) {
+ fprintf(logfile, "Warning: attempted write of 0x%x to physical "
+ "address 0x%lx in xen platform mmio space\n", val, addr);
+ warnings++;
+ }
return;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2007-10-24 21:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=471FB2C9.7080903@virtualiron.com \
--to=bguthro@virtualiron.com \
--cc=ggrebus@virtualiron.com \
--cc=xen-devel@lists.xensource.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.