[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 02/77] ppc: Use split I/D mmu modes to avoid flush
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 02/77] ppc: Use split I/D mmu modes to avoid flushes on interrupts |
Date: |
Mon, 16 Nov 2015 23:42:43 +1100 |
User-agent: |
Mutt/1.5.23 (2015-06-09) |
On Mon, Nov 16, 2015 at 09:10:24PM +1100, Benjamin Herrenschmidt wrote:
> Thanks for reviewing !
> On Mon, 2015-11-16 at 15:49 +1100, David Gibson wrote:
[snip]
> > > diff --git a/target-ppc/machine.c b/target-ppc/machine.c
> > > index f4ac761..b969492 100644
> > > --- a/target-ppc/machine.c
> > > +++ b/target-ppc/machine.c
> > > @@ -90,9 +90,11 @@ static int cpu_load_old(QEMUFile *f, void
> > > *opaque, int version_id)
> > > qemu_get_betls(f, &env->nip);
> > > qemu_get_betls(f, &env->hflags);
> > > qemu_get_betls(f, &env->hflags_nmsr);
> > > - qemu_get_sbe32s(f, &env->mmu_idx);
> >
> > Have I missed something, or do you still need a read here to read the
> > mmux_idx, even though you'll ignore it, otherwise you'll get out of
> > sync and break migration from an old stream.
>
> I am not completely cognizant of the migration stuff, that's very
> possible yes. Do I need to read into a dummy local ? Or is there
> a way to just say "drop 4 bytes from stream" ?
There's actually an example of this just below :)
> Note that I have generally completely overlooked the migration impact
> of my patches, this is something that I need to do but I wouldn't mind
> your help identifying the parts.
Ok, I'll do what I can.
> > > qemu_get_sbe32(f); /* Discard unused power_mode */
^^^
example of skipping a redundant value in the migration
stream
--
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
signature.asc
Description: PGP signature
- Re: [Qemu-ppc] [PATCH 04/77] target-ppc: Use sensible POWER8/POWER8E versions, (continued)
[Qemu-ppc] [PATCH 07/77] ppc: Add a bunch of hypervisor SPRs to Book3s, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 01/77] ppc: Remove MMU_MODEn_SUFFIX definitions, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 02/77] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Benjamin Herrenschmidt, 2015/11/10
Re: [Qemu-ppc] [PATCH 02/77] ppc: Use split I/D mmu modes to avoid flushes on interrupts, Alexander Graf, 2015/11/27
[Qemu-ppc] [PATCH 05/77] ppc: Update SPR definitions, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 11/77] ppc: Create cpu_ppc_set_papr() helper, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 12/77] ppc: Better figure out if processor has HV mode, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 09/77] ppc: Fix do_rfi() for rfi emulation, Benjamin Herrenschmidt, 2015/11/10