summary refs log tree commit diff stats
path: root/scripts/qapi/gen.py
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>2023-10-03 10:21:47 -0300
committerAlistair Francis <alistair.francis@wdc.com>2023-10-12 12:37:38 +1000
commit082e9e4a58ba80ec056220a2f762a1c6b9a3a96c (patch)
tree40ab5fb1eb5c76f2082905078a922b1b8bae52c5 /scripts/qapi/gen.py
parente216256ae9fc3d1988e3f1af3f644b4dafb79838 (diff)
downloadfocaccia-qemu-082e9e4a58ba80ec056220a2f762a1c6b9a3a96c.tar.gz
focaccia-qemu-082e9e4a58ba80ec056220a2f762a1c6b9a3a96c.zip
target/riscv/kvm: improve 'init_multiext_cfg' error msg
Our error message is returning the value of 'ret', which will be always
-1 in case of error, and will not be that useful:

qemu-system-riscv64: Unable to read ISA_EXT KVM register ssaia, error -1

Improve the error message by outputting 'errno' instead of 'ret'. Use
strerrorname_np() to output the error name instead of the error code.
This will give us what we need to know right away:

qemu-system-riscv64: Unable to read ISA_EXT KVM register ssaia, error code: ENOENT

Given that we're going to exit(1) in this condition instead of
attempting to recover, remove the 'kvm_riscv_destroy_scratch_vcpu()'
call.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231003132148.797921-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/qapi/gen.py')
0 files changed, 0 insertions, 0 deletions