mbox series

[v3,0/4] enhance error handling in kvmppc_read_int*

Message ID 20220707213015.552104-1-danielhb413@gmail.com (mailing list archive)
Headers show
Series enhance error handling in kvmppc_read_int* | expand

Message

Daniel Henrique Barboza July 7, 2022, 9:30 p.m. UTC
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(-)