Skip to content

enhance error handling in kvmppc_read_int*

Daniel Henrique Barboza qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest4 patches 0 repliesNew

Changes in v3 from the cover letter

- former patch 1/1: dropped
- patch 1 (former 3):
- use error_setg_errno() instead of error_setg()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2022-07/msg01167.html

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/ppc: add error report when fopen fails in kvmppc_read_int_dt()target/ppc/kvm.c+4 -30 replies
2/4target/ppc: enhance error report in kvmppc_read_int_cpu_dt()target/ppc/kvm.c+11 -90 replies
3/4target/ppc: use g_autofree in kvmppc_read_int_cpu_dt()target/ppc/kvm.c+3 -50 replies
4/4target/ppc: exit(1) on failure in kvmppc_get_clockfreq()target/ppc/kvm.c+16 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] enhance error handling in kvmppc_read_int*

Hi,

In this v3 I changed the error report after fopen() to use error_setg_errno(), as suggested by Cedric.

I also cut patch 1/1 because it's simpler to do all the function changes in a single patch instead of having a separated patch just to change the return value of both.

Changes from v2:
- former patch 1/1: dropped
- patch 1 (former 3):
- use error_setg_errno() instead of error_setg()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2022-07/msg01167.html

Daniel Henrique Barboza (3):
target/ppc: enhance error report in kvmppc_read_int_cpu_dt() target/ppc: use g_autofree in kvmppc_read_int_cpu_dt() target/ppc: exit(1) on failure in kvmppc_get_clockfreq()

jianchunfu (1):
target/ppc: add error report when fopen fails in kvmppc_read_int_dt()

 target/ppc/kvm.c | 46 +++++++++++++++++++++++++++++++---------------
 1 file changed, 31 insertions(+), 15 deletions(-)
Signature · 1 line
2.36.1