From: David Gibson <david@gibson.dropbear.id.au>
To: Greg Kurz <groug@kaod.org>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/5] spapr_pci: various cleanups and improvements
Date: Sun, 10 Sep 2017 11:40:15 +1000 [thread overview]
Message-ID: <20170910014015.GV2735@umbus.fritz.box> (raw)
In-Reply-To: <150496954641.9654.1998704077006846521.stgit@bahia>
[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]
On Sat, Sep 09, 2017 at 05:05:46PM +0200, Greg Kurz wrote:
> Before resuming the huge work on PHB hotplug, here are some patches
> that maybe worth to apply.
>
> Patches 1 to 3 are basic improvements.
I've applied these to ppc-for-2.11.
> Patch 4 and 5 may be a bit controversial. Everywhere in the spapr
> code where we build an FDT portion, libfdt failures cause QEMU to
> exit, even on hotplug paths. Only spapr_pci doesn't do that and
> propagates the error instead. My understanding is that a failure
> when building the FDT is likely to happen because of a bug in QEMU.
Still looking at these.
>
> Hence the choice to convert spapr_pci to do like the others. We may
> even consider changing _FDT() to abort() instead of exit().
>
> Alternatively, if libfdt failures shouldn't be necessarily fatal,
> especially on post-realize paths, then we should probably introduce
> an _FDT_ERR() helper to propagate errors. And use it in may places
> where we currently terminate QEMU: memory hotplug, CPU hotplug, CAS,
> machine reset...
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-09-10 1:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 15:05 [Qemu-devel] [PATCH 0/5] spapr_pci: various cleanups and improvements Greg Kurz
2017-09-09 15:06 ` [Qemu-devel] [PATCH 1/5] spapr_pci: drop useless check in spapr_phb_vfio_get_loc_code() Greg Kurz
2017-09-10 16:56 ` Philippe Mathieu-Daudé
2017-09-09 15:06 ` [Qemu-devel] [PATCH 2/5] spapr_pci: drop useless check in spapr_populate_pci_child_dt() Greg Kurz
2017-09-10 16:57 ` Philippe Mathieu-Daudé
2017-09-09 15:06 ` [Qemu-devel] [PATCH 3/5] spapr_pci: use g_strdup_printf() Greg Kurz
2017-09-09 15:06 ` [Qemu-devel] [PATCH 4/5] spapr_pci: use the common _FDT() helper Greg Kurz
2017-09-09 15:06 ` [Qemu-devel] [PATCH 5/5] spapr_pci: handle FDT creation errors with _FDT() Greg Kurz
2017-09-10 1:40 ` David Gibson [this message]
2017-09-10 7:12 ` [Qemu-devel] [PATCH 0/5] spapr_pci: various cleanups and improvements David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170910014015.GV2735@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).