Skip to content

qemu-error: advanced report_once handling

Cornelia Huck qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- merged patch 3 (use the new function in vfio-ccw) into patch 1
- require a non-NULL 'printed' parameter
- have the functions return whether something was printed and slightly simplify the existing macros
- adapt macro formatting to suit my aesthetic sensibilities

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qemu-error: add {error, warn}_report_once_condhw/vfio/ccw.c include/qemu/error-report.h util/qemu-error.c+56 -151 reply
2/2qemu-error: make use of {error, warn}_report_once_condinclude/qemu/error-report.h+14 -201 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarkus Armbruster
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qemu-error: advanced report_once handling

[Markus: I've decided to not include your R-b, as I did too many changes to feel comfortable with that.]

[Also note that I'm about to disappear on vacation, so don't expect quick responses. I just want to get it out before I forget about it.]

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.

v1->v2:
- merged patch 3 (use the new function in vfio-ccw) into patch 1
- require a non-NULL 'printed' parameter
- have the functions return whether something was printed and slightly simplify the existing macros
- adapt macro formatting to suit my aesthetic sensibilities

Cornelia Huck (2):
qemu-error: add {error,warn}_report_once_cond
qemu-error: make use of {error,warn}_report_once_cond

 hw/vfio/ccw.c               | 18 +++--------------
 include/qemu/error-report.h | 39 ++++++++++++++++++------------------
 util/qemu-error.c           | 48 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+), 35 deletions(-)
Signature · 1 line
2.14.4