xen/arm: map_dev_mmio_region: printk should be ratelimited
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Apr 2016 06:28:14 +0000 (14:28 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Apr 2016 15:35:14 +0000 (11:35 -0400)
commitc7445d8c8eb34ca97cd2a28cc9d874df40d94557
tree1477cedf2322031d8425e13e0924cc9f55c56c0c
parent30417631fb9600440a088c23f4470ea2e2676879
xen/arm: map_dev_mmio_region: printk should be ratelimited

The function map_dev_mmio_region is used in a hypercall. Therefore all
printks should be ratelimited to avoid a malicious guest flooding the
console.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/p2m.c