* [PATCH][QEMU] limit mmio messages
@ 2007-10-24 21:02 Ben Guthro
0 siblings, 0 replies; only message in thread
From: Ben Guthro @ 2007-10-24 21:02 UTC (permalink / raw)
To: xen-devel; +Cc: gary Grebus
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-24 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 21:02 [PATCH][QEMU] limit mmio messages Ben Guthro
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.