qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] spapr: Improve error reporting in spapr_caps.c
@ 2020-06-10 17:17 Greg Kurz
  2020-06-10 17:17 ` [PATCH 1/3] error: auto propagated local_err Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Greg Kurz @ 2020-06-10 17:17 UTC (permalink / raw)
  To: David Gibson
  Cc: Laurent Vivier, Vladimir Sementsov-Ogievskiy, qemu-ppc,
	qemu-devel, Markus Armbruster

Spapr capabilities are checked at machine init. If a capability cannot
be used, an error message is printed and QEMU exits. In most places,
the error message also contains an hint for the user. But we should
use error_append_hint() for that, as explained in the "qapi/error.h"
header.

This is already the case for cap_fwnmi_apply() and we now want to add 
a similar check for nested KVM-HV. Unfortunately, spapr_caps_apply()
passes &error_fatal to all apply hooks and error_append_hint() is
never called. 

So this reuses previous work from Vladimir Sementsov-Ogievskiy to
address that.

---

Greg Kurz (2):
      spapr: Use error_append_hint() in spapr_caps.c
      spapr: Forbid nested KVM-HV in pre-power9 compat mode

Vladimir Sementsov-Ogievskiy (1):
      error: auto propagated local_err


 hw/ppc/spapr_caps.c  |  104 +++++++++++++++----------
 include/qapi/error.h |  205 ++++++++++++++++++++++++++++++++++++++++++--------
 2 files changed, 236 insertions(+), 73 deletions(-)

--
Greg



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-11  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10 17:17 [PATCH 0/3] spapr: Improve error reporting in spapr_caps.c Greg Kurz
2020-06-10 17:17 ` [PATCH 1/3] error: auto propagated local_err Greg Kurz
2020-06-10 17:17 ` [PATCH 2/3] spapr: Use error_append_hint() in spapr_caps.c Greg Kurz
2020-06-10 18:03   ` Vladimir Sementsov-Ogievskiy
2020-06-11  8:33     ` Greg Kurz
2020-06-10 17:17 ` [PATCH 3/3] spapr: Forbid nested KVM-HV in pre-power9 compat mode Greg Kurz
2020-06-10 18:14   ` Vladimir Sementsov-Ogievskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).