diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-25 14:57:08 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-25 14:57:08 +0100 |
commit | d3d542204164ea14ac2a118e6b00a8119ce597b2 (patch) | |
tree | c9d90d01eba0c91c5cc46255c0595e873abeb278 /tools | |
parent | e069a5b47305d00b2cf518cc360e73c22c6a3303 (diff) | |
download | xen-d3d542204164ea14ac2a118e6b00a8119ce597b2.tar.gz xen-d3d542204164ea14ac2a118e6b00a8119ce597b2.tar.bz2 xen-d3d542204164ea14ac2a118e6b00a8119ce597b2.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ioemu/hw/xen_platform.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/ioemu/hw/xen_platform.c b/tools/ioemu/hw/xen_platform.c index ae7b2a5ff8..9eaf35269c 100644 --- a/tools/ioemu/hw/xen_platform.c +++ b/tools/ioemu/hw/xen_platform.c @@ -36,14 +36,24 @@ static void platform_ioport_map(PCIDevice *pci_dev, int region_num, 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; } |