From: Thomas Huth <thuth@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>,
mdroth@linux.vnet.ibm.com, dgilbert@redhat.com
Cc: agraf@suse.de, aik@ozlabs.ru, lvivier@redhat.com,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCHv2 4/5] Revert "spapr: Fix migration of PCI host bridges from qemu-2.7"
Date: Mon, 21 Nov 2016 11:51:52 +0100 [thread overview]
Message-ID: <2f6d2ecd-bfd5-4c1b-87e1-9c45d39cab1d@redhat.com> (raw)
In-Reply-To: <1479706302-2251-5-git-send-email-david@gibson.dropbear.id.au>
On 21.11.2016 06:31, David Gibson wrote:
> This reverts commit 9b54ca0ba781012eeea4237b7c4832ba2ea81d89.
>
> The commit above corrected a migration breakage between qemu-2.7 and
> qemu-2.8. However it did so by advancing the migration version for
> the PCI host bridge, which obviously breaks migration backwards to
> earlier qemu versions.
>
> Although it's not totally essential, we'd like to maintain the
> possibility for backwards migration, so revert the change in
> preparation for a better fix.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> hw/ppc/spapr_pci.c | 18 ++++++------------
> 1 file changed, 6 insertions(+), 12 deletions(-)
>
> diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
> index 661f7d8..e429c94 100644
> --- a/hw/ppc/spapr_pci.c
> +++ b/hw/ppc/spapr_pci.c
> @@ -1680,25 +1680,19 @@ static int spapr_pci_post_load(void *opaque, int version_id)
> return 0;
> }
>
> -static bool version_before_3(void *opaque, int version_id)
> -{
> - return version_id < 3;
> -}
> -
> static const VMStateDescription vmstate_spapr_pci = {
> .name = "spapr_pci",
> - .version_id = 3,
> + .version_id = 2,
> .minimum_version_id = 2,
> .pre_save = spapr_pci_pre_save,
> .post_load = spapr_pci_post_load,
> .fields = (VMStateField[]) {
> VMSTATE_UINT64_EQUAL(buid, sPAPRPHBState),
> - VMSTATE_UNUSED_TEST(version_before_3,
> - sizeof(uint32_t) /* dma_liobn[0] */
> - + sizeof(uint64_t) /* mem_win_addr */
> - + sizeof(uint64_t) /* mem_win_size */
> - + sizeof(uint64_t) /* io_win_addr */
> - + sizeof(uint64_t) /* io_win_size */),
> + VMSTATE_UINT32_EQUAL(dma_liobn[0], sPAPRPHBState),
> + VMSTATE_UINT64_EQUAL(mem_win_addr, sPAPRPHBState),
> + VMSTATE_UINT64_EQUAL(mem_win_size, sPAPRPHBState),
> + VMSTATE_UINT64_EQUAL(io_win_addr, sPAPRPHBState),
> + VMSTATE_UINT64_EQUAL(io_win_size, sPAPRPHBState),
> VMSTATE_STRUCT_ARRAY(lsi_table, sPAPRPHBState, PCI_NUM_PINS, 0,
> vmstate_spapr_pci_lsi, struct spapr_pci_lsi),
> VMSTATE_INT32(msi_devs_num, sPAPRPHBState),
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2016-11-21 10:52 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-21 5:31 [Qemu-devel] [PATCHv2 0/5] Last minute ppc migration fixes David Gibson
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 1/5] target-ppc: Fix CPU migration from qemu-2.6 <-> later versions David Gibson
2016-11-21 10:12 ` Dr. David Alan Gilbert
2016-11-21 10:41 ` Thomas Huth
2016-11-21 14:14 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-22 8:19 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-22 23:28 ` David Gibson
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 2/5] migration: Add VMSTATE_UINTTL_TEST() David Gibson
2016-11-21 10:02 ` Dr. David Alan Gilbert
2016-11-21 10:43 ` Thomas Huth
2016-11-21 14:16 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 3/5] target-ppc: Allow eventual removal of old migration mistakes David Gibson
2016-11-21 10:24 ` Dr. David Alan Gilbert
2016-11-21 10:47 ` Thomas Huth
2016-11-21 15:26 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-21 23:11 ` David Gibson
2016-11-22 8:32 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 4/5] Revert "spapr: Fix migration of PCI host bridges from qemu-2.7" David Gibson
2016-11-21 10:51 ` Thomas Huth [this message]
2016-11-21 15:27 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-22 8:33 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 5/5] spapr: Fix 2.7<->2.8 migration of PCI host bridge David Gibson
2016-11-21 10:43 ` Dr. David Alan Gilbert
2016-11-21 12:02 ` Thomas Huth
2016-11-21 16:02 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-21 23:15 ` David Gibson
2016-11-22 9:42 ` Greg Kurz
2016-11-22 8:17 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-23 0:17 ` David Gibson
2016-11-23 2:28 ` Alexey Kardashevskiy
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=2f6d2ecd-bfd5-4c1b-87e1-9c45d39cab1d@redhat.com \
--to=thuth@redhat.com \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--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).