Skip to content

Separate memory access logs from guest_errors

BALATON Zoltan 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 3 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2log: Add separate debug option for logging invalid memory accessesinclude/qemu/log.h system/memory.c system/physmem.c +1 more+7 -41 reply
2/2log: Suggest using -d guest_error, invalid_mem instead of guest_errorsdocs/devel/secure-coding-practices.rst tests/avocado/smmu.py tests/qtest/pnv-host-i2c-test.c +1 more+8 -40 replies

Reviews trailers per patch

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

PatchPeter Maydell
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 [PATCH v2 0/2] Separate memory access logs from guest_errors

Originally memory access logs were a debug define that then were converted to log messages but were classified as guest_errors which already logs misc errors. As invalid memory access logs can come from accessing not emulated peripherals or memory areas, these often generate a lot of messages that are better be controlled separately from other errors to avoid obscuring those. As an example try 'qemu-system-ppc -d guest_errors' to see the problem. After this series the actual guest error logs are easier to spot. I've tried to submit this before but there were some people who liked the current behaviour so now this series has another patch that preserves the old option printing a warning to allow time to get used to the new behaviour (which actually brings back the old behaviour when mem access logs were a debug define). This second patch is optional if changing the behaviour without notice is acceptable. As these are debug switches no deprecation period is needed so the second patch could be omitted. I leave that decision to the maintainers.

v2: Rename the option from memaccess to invalid_mem as suggested by Peter Maydell

Regards,
BALATON Zoltan

BALATON Zoltan (2):
log: Add separate debug option for logging invalid memory accesses
log: Suggest using -d guest_error,invalid_mem instead of guest_errors

 docs/devel/secure-coding-practices.rst | 2 +-
 include/qemu/log.h                     | 1 +
 system/memory.c                        | 6 +++---
 system/physmem.c                       | 2 +-
 tests/avocado/smmu.py                  | 2 +-
 tests/qtest/pnv-host-i2c-test.c        | 2 +-
 util/log.c                             | 8 +++++++-
 7 files changed, 15 insertions(+), 8 deletions(-)
Signature · 1 line
2.30.9