mbox series

[0/3] qemu-error: advanced report_once handling

Message ID 20180828123346.17548-1-cohuck@redhat.com
Headers show
Series qemu-error: advanced report_once handling | expand

Message

Cornelia Huck Aug. 28, 2018, 12:33 p.m. UTC
Based on previous discussions, I wanted to enhance the recently
merged report_once infrastucture with a way to print a message
once based on a variable instead of globally-once, similar to
what vfio-ccw uses today.

Not really tested, mainly wanted to get this out before my vacation
to get the ball rolling.

Cornelia Huck (3):
  qemu-error: add {error,warn}_report_once_cond
  qemu-error: make use of {error,warn}_report_once_cond
  vfio-ccw: switch to warn_report_once_cond()

 hw/vfio/ccw.c               | 18 +++---------------
 include/qemu/error-report.h | 15 +++++++--------
 util/qemu-error.c           | 44 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+), 23 deletions(-)

Comments

Markus Armbruster Aug. 29, 2018, 6:56 p.m. UTC | #1
Cornelia Huck <cohuck@redhat.com> writes:

> Based on previous discussions, I wanted to enhance the recently
> merged report_once infrastucture with a way to print a message
> once based on a variable instead of globally-once, similar to
> what vfio-ccw uses today.
>
> Not really tested, mainly wanted to get this out before my vacation
> to get the ball rolling.

I had a few comments, but found nothing serious enough to withhold my
Reviewed-by: Markus Armbruster <armbru@redhat.com>