All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: lvivier@redhat.com, peter.maydell@linaro.org,
	quintela@redhat.com, danielhb413@gmail.com, groug@kaod.org,
	qemu-devel@nongnu.org, David Gibson <david@gibson.dropbear.id.au>
Subject: Re: ppc pbr403 vmstate
Date: Mon, 17 Jan 2022 09:52:29 +0000	[thread overview]
Message-ID: <YeU8Xbth4iPlBnad@work-vm> (raw)
In-Reply-To: <8609da8e-e4e6-3b78-6d49-c6cf4cb07ddd@kaod.org>

* Cédric Le Goater (clg@kaod.org) wrote:
> On 1/17/22 06:52, David Gibson wrote:
> > On Fri, Jan 14, 2022 at 08:07:21AM +0100, Cédric le Goater wrote:
> > > On 1/14/22 00:41, David Gibson wrote:
> > > > On Thu, Jan 13, 2022 at 06:51:56PM +0000, Dr. David Alan Gilbert wrote:
> > > > > Hi,
> > > > >     Is there any easy way of getting a machine where the pbr403 vmstate
> > > > > would be generated?
> > > > 
> > > > The condition in pbr403_needed is...
> > > > 
> > > >       return (pvr & 0xffff0000) == 0x00200000;
> > > > 
> > > > .. which looks to be the PVR for ppc403 models.  That makes sense with
> > > > the section name... but not so much with the fact that it's under
> > > > cpu/tlb6xx.  The 6xx MMU is basically unrelated to the 40x MMU.  But
> > > > it looks like the vmstate_tlbemb might be shared between then, because
> > > > of bad ideas of the past.
> > > > 
> > > > But in any case, we already dropped what little 403 support we ever
> > > > had - there's nothing with that PVR even listed in
> > > > target/ppc/cpu-models.h.
> > > > 
> > > > So I think we should just drop it.
> > > 
> > > yes. But we can not remove env.pb since this would break migration
> > > compatibility, correct ?
> > 
> > Only if it appears in a migration section that's actually emitted by a
> > supported machine type.  As far as I can tell the only section that
> > does that is vmstate_pbr403, which we're also dropping so we should be
> > fine.
> 
> I sent a patch to remove vmstate_pbr403 first.

Thanks!

Dave

>  > It is also touched in the *super* old cpu_load_old.  I suspect we
> > could probably just drop that completely, since I don't think we
> > realistically support migration from a version that old anyway.  But
> > even if we don't want to do that right now, we can just replace the
> > reads into env->pb with discarding reads and we'll be fine.  We don't
> > implement any cpus that actually used those fields, so we can ignore
> > them in the migration stream.
> 
> I will take a look at this also with follow ups.
> 
> Thanks,
> 
> C.
> 
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



  reply	other threads:[~2022-01-17  9:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 18:51 ppc pbr403 vmstate Dr. David Alan Gilbert
2022-01-13 23:41 ` David Gibson
2022-01-14  7:07   ` Cédric Le Goater
2022-01-17  5:52     ` David Gibson
2022-01-17  9:45       ` Cédric Le Goater
2022-01-17  9:52         ` Dr. David Alan Gilbert [this message]
2022-01-17 20:40       ` Peter Maydell
2022-01-18  9:11         ` Cédric Le Goater

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=YeU8Xbth4iPlBnad@work-vm \
    --to=dgilbert@redhat.com \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=groug@kaod.org \
    --cc=lvivier@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.