Re: [Qemu-devel] [PATCH v3 1/2] qemu-error: introduce {error|warn}_report_once

2018-05-23 Thread Eric Blake
On 05/22/2018 10:18 PM, Peter Xu wrote: I stole the printk_once() macro. I always wanted to be able to print some error directly if there is a buffer to dump, however we can't use error_report() where the code path can be triggered by DDOS attack. To avoid that, we can introduce a print-once-li

[Qemu-devel] [PATCH v3 1/2] qemu-error: introduce {error|warn}_report_once

2018-05-22 Thread Peter Xu
I stole the printk_once() macro. I always wanted to be able to print some error directly if there is a buffer to dump, however we can't use error_report() where the code path can be triggered by DDOS attack. To avoid that, we can introduce a print-once-like function for it. Meanwhile, we also in