ia64/xen-unstable
changeset 16239:b4060976cf5e
hvm: Improve and 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>
the platform device.
Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Signed-off-by: Gary Grebus <ggrebus@virtualiron.com>
author | Keir Fraser <keir@xensource.com> |
---|---|
date | Thu Oct 25 14:57:08 2007 +0100 (2007-10-25) |
parents | b100412f621c |
children | e4cd41c5c4e8 |
files | tools/ioemu/hw/xen_platform.c |
line diff
1.1 --- a/tools/ioemu/hw/xen_platform.c Thu Oct 25 14:55:37 2007 +0100 1.2 +++ b/tools/ioemu/hw/xen_platform.c Thu Oct 25 14:57:08 2007 +0100 1.3 @@ -36,14 +36,24 @@ static void platform_ioport_map(PCIDevic 1.4 1.5 static uint32_t platform_mmio_read(void *opaque, target_phys_addr_t addr) 1.6 { 1.7 - fprintf(logfile, "Warning: try read from xen platform mmio space\n"); 1.8 + static int warnings = 0; 1.9 + if (warnings < 5) { 1.10 + fprintf(logfile, "Warning: attempted read from physical address " 1.11 + "0x%lx in xen platform mmio space\n", addr); 1.12 + warnings++; 1.13 + } 1.14 return 0; 1.15 } 1.16 1.17 static void platform_mmio_write(void *opaque, target_phys_addr_t addr, 1.18 uint32_t val) 1.19 { 1.20 - fprintf(logfile, "Warning: try write to xen platform mmio space\n"); 1.21 + static int warnings = 0; 1.22 + if (warnings < 5) { 1.23 + fprintf(logfile, "Warning: attempted write of 0x%x to physical " 1.24 + "address 0x%lx in xen platform mmio space\n", val, addr); 1.25 + warnings++; 1.26 + } 1.27 return; 1.28 } 1.29