From: Marc-André Lureau <marcandre.lur...@redhat.com> Like other "-foo help" CLI, the qemu process should return 0 for "-tpmdev help".
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- system/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/tpm.c b/system/tpm.c index 8df0f6e72b..5f12a62c4a 100644 --- a/system/tpm.c +++ b/system/tpm.c @@ -181,7 +181,7 @@ int tpm_config_parse(QemuOptsList *opts_list, const char *optstr) if (!strcmp(optstr, "help")) { tpm_display_backend_drivers(); - return -1; + exit(EXIT_SUCCESS); } opts = qemu_opts_parse_noisily(opts_list, optstr, true); if (!opts) { -- 2.50.0