qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>,
	QEMU Developers <qemu-devel@nongnu.org>,
	"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
	Michael Roth <mdroth@linux.vnet.ibm.com>,
	Greg Kurz <groug@kaod.org>,
	Suraj Jitindar Singh <sjitindarsingh@gmail.com>,
	sbobroff@au1.ibm.com, Laurent Vivier <lvivier@redhat.com>
Subject: Re: [Qemu-devel] [PULL 00/18] ppc-for-2.10 queue 20170714
Date: Fri, 14 Jul 2017 16:13:05 +0100	[thread overview]
Message-ID: <CAFEAcA8kQF3xS6=uQiXf6FSbP56xmStPN9SoqWy1cmzMFFUpOQ@mail.gmail.com> (raw)
In-Reply-To: <20170714061521.28300-1-david@gibson.dropbear.id.au>

On 14 July 2017 at 07:15, David Gibson <david@gibson.dropbear.id.au> wrote:
> The following changes since commit 49bcce4b9c11759678fd223aefb48691c4959d4f:
>
>   Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-07-12' into staging (2017-07-13 16:56:06 +0100)
>
> are available in the git repository at:
>
>   git://github.com/dgibson/qemu.git tags/ppc-for-2.10-20170714
>
> for you to fetch changes up to e11134d2ac7744569d7c387102368c507d340c30:
>
>   pseries: Allow HPT resizing with KVM (2017-07-14 09:28:30 +1000)
>
> ----------------------------------------------------------------
> ppc patch queue 2017-07-14
>
> Two major batches in this set, rather than the usual collection of
> assorted fixes.
>
>     * More DRC cleanup.  This gets the state management into a state
>       which should fix many of the hotplug+migration problems we've
>       had.  Plus it gets the migration stream format into something
>       well defined and pretty minimal which we can reasonably support
>       into the future.
>
>     * Hashed Page Table resizing.  It's been a while since this was
>       posted, but it's been through several previous rounds of review.
>       The kernel parts (both guest and host) are merged in 4.11, so
>       this is the only remaining piece left to allow resizing of the
>       HPT in a running guest.
>
> There are also a handful of unrelated fixes.

Hi. I'm afraid this fails to build on the w32 compiler:
  CC      ppc64-softmmu/hw/ppc/spapr.o
/home/petmay01/linaro/qemu-for-merges/hw/ppc/spapr.c: In function
‘spapr_get_resize_hpt’:
/home/petmay01/linaro/qemu-for-merges/hw/ppc/spapr.c:2642:1: error:
control reaches end of non-void functio
n [-Werror=return-type]
 }
 ^

The compiler is confused (it doesn't realise that "assert(0)"
cannot return), but you can make it happier like this:

diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 09b6ff0..68f936c 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2638,7 +2638,7 @@ static char *spapr_get_resize_hpt(Object *obj,
Error **errp)
     case SPAPR_RESIZE_HPT_REQUIRED:
         return g_strdup("required");
     }
-    assert(0);
+    g_assert_not_reached();
 }

 static void spapr_set_resize_hpt(Object *obj, const char *value, Error **errp)


I think g_assert_not_reached() is easier to read anyway; I
always have to think for a moment about whether assert(0)
or assert(1) is the "always assert" condition...

thanks
-- PMM

  parent reply	other threads:[~2017-07-14 15:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14  6:15 [Qemu-devel] [PULL 00/18] ppc-for-2.10 queue 20170714 David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 01/18] spapr: migrate pending_events of spapr state David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 02/18] spapr: Minor cleanups to events handling David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 03/18] spapr: Treat devices added before inbound migration as coldplugged David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 04/18] spapr: Remove 'awaiting_allocation' DRC flag David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 05/18] spapr: Simplify unplug path David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 06/18] spapr: Abort on delete failure in spapr_drc_release() David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 07/18] spapr: Refactor spapr_drc_detach() David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 08/18] spapr: Cleanups relating to DRC awaiting_release field David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 09/18] spapr: Consolidate DRC state variables David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 10/18] spapr: Remove sPAPRConfigureConnectorState sub-structure David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 11/18] spapr: Implement DR-indicator for physical DRCs only David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 12/18] spapr: fix potential memory leak in spapr_core_plug() David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 13/18] ppc/pnv: Remove unused XICSState reference David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 14/18] pseries: Stubs for HPT resizing David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 15/18] pseries: Implement " David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 16/18] pseries: Enable HPT resizing for 2.10 David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 17/18] pseries: Use smaller default hash page tables when guest can resize David Gibson
2017-07-14  6:15 ` [Qemu-devel] [PULL 18/18] pseries: Allow HPT resizing with KVM David Gibson
2017-07-14 10:25 ` [Qemu-devel] [PULL 00/18] ppc-for-2.10 queue 20170714 Peter Maydell
2017-07-15  2:39   ` David Gibson
2017-07-14 15:13 ` Peter Maydell [this message]
2017-07-15  2:42   ` David Gibson
2017-07-15  7:45     ` Peter Maydell
2017-07-16  6:53       ` 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='CAFEAcA8kQF3xS6=uQiXf6FSbP56xmStPN9SoqWy1cmzMFFUpOQ@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=agraf@suse.de \
    --cc=david@gibson.dropbear.id.au \
    --cc=groug@kaod.org \
    --cc=lvivier@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=sbobroff@au1.ibm.com \
    --cc=sjitindarsingh@gmail.com \
    /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).