From: David Gibson <david@gibson.dropbear.id.au>
To: Greg Kurz <groug@kaod.org>
Cc: lvivier@redhat.com, peter.maydell@linaro.org,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org, clg@kaod.org
Subject: Re: [Qemu-devel] [PULL 21/38] spapr: Add forgotten capability to migration stream
Date: Wed, 22 May 2019 21:10:35 +1000 [thread overview]
Message-ID: <20190522111035.GI30423@umbus.fritz.box> (raw)
In-Reply-To: <20190522095829.7b688f35@bahia.lan>
[-- Attachment #1: Type: text/plain, Size: 3484 bytes --]
On Wed, May 22, 2019 at 09:58:29AM +0200, Greg Kurz wrote:
> On Wed, 22 May 2019 14:45:43 +1000
> David Gibson <david@gibson.dropbear.id.au> wrote:
>
> > spapr machine capabilities are supposed to be sent in the migration stream
> > so that we can sanity check the source and destination have compatible
> > configuration. Unfortunately, when we added the hpt-max-page-size
> > capability, we forgot to add it to the migration state. This means that we
> > can generate spurious warnings when both ends are configured for large
> > pages, or potentially fail to warn if the source is configured for huge
> > pages, but the destination is not.
> >
> > Fixes: 2309832afda "spapr: Maximum (HPT) pagesize property"
> >
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> > Reviewed-by: Cédric Le Goater <clg@kaod.org>
> > ---
>
> Huh... we discussed that it was breaking backward migration:
>
> https://lists.gnu.org/archive/html/qemu-ppc/2019-05/msg00330.html
>
> So I'm a bit surprised to see this in the PR... is it intentional ?
Sod, no, I forgot to remove it from my tree.
Having been through the test cycle, I'd prefer not to hold up the PR
for this - as long as we fix it before the release we should be ok.
>
> > hw/ppc/spapr.c | 1 +
> > hw/ppc/spapr_caps.c | 1 +
> > include/hw/ppc/spapr.h | 1 +
> > 3 files changed, 3 insertions(+)
> >
> > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> > index 8580a8dc67..bcae30ad26 100644
> > --- a/hw/ppc/spapr.c
> > +++ b/hw/ppc/spapr.c
> > @@ -2125,6 +2125,7 @@ static const VMStateDescription vmstate_spapr = {
> > &vmstate_spapr_cap_cfpc,
> > &vmstate_spapr_cap_sbbc,
> > &vmstate_spapr_cap_ibs,
> > + &vmstate_spapr_cap_hpt_maxpagesize,
> > &vmstate_spapr_irq_map,
> > &vmstate_spapr_cap_nested_kvm_hv,
> > &vmstate_spapr_dtb,
> > diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c
> > index 9b1c10baa6..658eb15a14 100644
> > --- a/hw/ppc/spapr_caps.c
> > +++ b/hw/ppc/spapr_caps.c
> > @@ -703,6 +703,7 @@ SPAPR_CAP_MIG_STATE(dfp, SPAPR_CAP_DFP);
> > SPAPR_CAP_MIG_STATE(cfpc, SPAPR_CAP_CFPC);
> > SPAPR_CAP_MIG_STATE(sbbc, SPAPR_CAP_SBBC);
> > SPAPR_CAP_MIG_STATE(ibs, SPAPR_CAP_IBS);
> > +SPAPR_CAP_MIG_STATE(hpt_maxpagesize, SPAPR_CAP_HPT_MAXPAGESIZE);
> > SPAPR_CAP_MIG_STATE(nested_kvm_hv, SPAPR_CAP_NESTED_KVM_HV);
> > SPAPR_CAP_MIG_STATE(large_decr, SPAPR_CAP_LARGE_DECREMENTER);
> > SPAPR_CAP_MIG_STATE(ccf_assist, SPAPR_CAP_CCF_ASSIST);
> > diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
> > index 7e32f309c2..9fc91c8f5e 100644
> > --- a/include/hw/ppc/spapr.h
> > +++ b/include/hw/ppc/spapr.h
> > @@ -849,6 +849,7 @@ extern const VMStateDescription vmstate_spapr_cap_dfp;
> > extern const VMStateDescription vmstate_spapr_cap_cfpc;
> > extern const VMStateDescription vmstate_spapr_cap_sbbc;
> > extern const VMStateDescription vmstate_spapr_cap_ibs;
> > +extern const VMStateDescription vmstate_spapr_cap_hpt_maxpagesize;
> > extern const VMStateDescription vmstate_spapr_cap_nested_kvm_hv;
> > extern const VMStateDescription vmstate_spapr_cap_large_decr;
> > extern const VMStateDescription vmstate_spapr_cap_ccf_assist;
>
--
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:[~2019-05-22 12:08 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-22 4:45 [Qemu-devel] [PULL 00/38] ppc-for-4.1 queue 20190522 David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 01/38] target/ppc/kvm: Fix trace typo David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 02/38] configure: Distinguish ppc64 and ppc64le hosts David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 03/38] configure: Use quotes around uses of $CPU_CFLAGS David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 04/38] hw/ppc/prep: use TYPE_MC146818_RTC instead of a hardcoded string David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 05/38] hw/ppc/40p: Move the MC146818 RTC to the board where it belongs David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 06/38] hw/ppc/40p: use 1900 as a base year David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 07/38] target/ppc: Add ibm, purr and ibm, spurr device-tree properties David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 08/38] target/ppc: Fix xvxsigdp David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 09/38] target/ppc: Fix xxbrq, xxbrw David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 10/38] target/ppc: Fix vslv and vsrv David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 11/38] target/ppc: Fix vsum2sws David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 12/38] target/ppc: Fix xxspltib David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 13/38] spapr/xive: EQ page should be naturally aligned David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 14/38] spapr/xive: fix EQ page addresses above 64GB David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 15/38] spapr/xive: print out the EQ page address in the monitor David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 16/38] Fix typo on "info pic" monitor cmd output for xive David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 17/38] target/ppc: Optimise VSX_LOAD_SCALAR_DS and VSX_VECTOR_LOAD_STORE David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 18/38] target/ppc: Fix xvabs[sd]p, xvnabs[sd]p, xvneg[sd]p, xvcpsgn[sd]p David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 19/38] spapr/xive: Sanity checks of OV5 during CAS David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 20/38] target/ppc: Set PSSCR_EC on cpu halt to prevent spurious wakeup David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 21/38] spapr: Add forgotten capability to migration stream David Gibson
2019-05-22 7:58 ` Greg Kurz
2019-05-22 11:10 ` David Gibson [this message]
2019-05-22 12:22 ` Greg Kurz
2019-05-22 4:45 ` [Qemu-devel] [PULL 22/38] target/ppc: Use vector variable shifts for VSL, VSR, VSRA David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 23/38] spapr: Fix phb_placement backwards compatibility David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 24/38] spapr: Print out extra hints when CAS negotiation of interrupt mode fails David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 25/38] spapr/xive: add KVM support David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 26/38] spapr/xive: add hcall support when under KVM David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 27/38] spapr/xive: add state synchronization with KVM David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 28/38] spapr/xive: introduce a VM state change handler David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 29/38] spapr/xive: add migration support for KVM David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 30/38] spapr/xive: activate KVM support David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 31/38] sysbus: add a sysbus_mmio_unmap() helper David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 32/38] spapr: introduce routines to delete the KVM IRQ device David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 33/38] spapr: check for the activation of " David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 34/38] spapr/irq: introduce a spapr_irq_init_device() helper David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 35/38] spapr/irq: initialize the IRQ device only once David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 36/38] ppc/xics: fix irq priority in ics_set_irq_type() David Gibson
2019-05-22 4:45 ` [Qemu-devel] [PULL 37/38] spapr/irq: add KVM support to the 'dual' machine David Gibson
2019-05-22 4:46 ` [Qemu-devel] [PULL 38/38] docs: provide documentation on the POWER9 XIVE interrupt controller David Gibson
2019-05-23 9:29 ` [Qemu-devel] [PULL 00/38] ppc-for-4.1 queue 20190522 Peter Maydell
2019-05-24 0:46 ` David Gibson
2019-05-24 2:17 ` David Gibson
2019-05-24 6:30 ` David Gibson
-- strict thread matches above, loose matches on Subject: below --
2019-05-21 6:28 [Qemu-devel] [PULL 00/38] ppc-for-4.1 queue 20190521 David Gibson
2019-05-21 6:29 ` [Qemu-devel] [PULL 21/38] spapr: Add forgotten capability to migration stream 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=20190522111035.GI30423@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=clg@kaod.org \
--cc=groug@kaod.org \
--cc=lvivier@redhat.com \
--cc=peter.maydell@linaro.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).