From: Bharata B Rao <bharata@linux.vnet.ibm.com>
To: Greg Kurz <groug@kaod.org>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
Michael Roth <mdroth@linux.vnet.ibm.com>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [Qemu-devel] [PATCH] spapr: fix memory hotplug error path
Date: Tue, 4 Jul 2017 14:41:33 +0530 [thread overview]
Message-ID: <20170704091133.GC7689@in.ibm.com> (raw)
In-Reply-To: <20170704100246.37100aa1@bahia.lan>
On Tue, Jul 04, 2017 at 10:02:46AM +0200, Greg Kurz wrote:
> > > There is some history to this. I was doing error recovery and propagation
> > > here similarly during memory hotplug development phase until Igor
> > > suggested that we shoudn't try to recover after we have done guest
> > > visible changes.
> > >
> > > Refer to "changes in v6" section in this post:
> > > https://lists.gnu.org/archive/html/qemu-ppc/2015-06/msg00296.html
> > >
> > > However at that time we were doing memory add by DRC index method
> > > and hence would attach and online one LMB at a time.
> > > In that method, if an intermediate attach fails we would end up with a few
> > > LMBs being onlined by the guest already. However subsequently
> > > we have switched (optionally, based on dedicated_hp_event_source) to
> > > count-indexed method of hotplug where we do attach of all LMBs one by one
> > > and then request the guest to hotplug all of them at once using count-indexed
> > > method.
> > >
> > > So it will be a bit tricky to abort for index based case and recover
> > > correctly for count-indexed case.
> >
> > Looked at the code again and realized that though we started with
> > index based LMB addition, we later switched to count based addition. Then
> > we added support for count-indexed type subject to the presence
> > of dedidated hotplug event source while still retaining the support
> > for count based addition.
> >
> > So presently we do attach of all LMBs one by one and then do onlining
> > (count based or count-indexed based) once. Hence error recovery
> > for both cases would be similar now. So I guess you should take care of
> > undoing pc_dimm_memory_plug() like Igor mentioned and also undo the
> > effects of partial successful attaches.
> >
>
> I've sent a v2 that adds rollback.
oh ok, somehow v2 didn't reach me at all and I saw the v2 in archives only
now. So just noting that my above replies were sent w/o being aware of v2 :)
> > >
> > > Regards,
> > > Bharata.
next prev parent reply other threads:[~2017-07-04 9:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-03 12:21 [Qemu-devel] [PATCH] spapr: fix memory hotplug error path Greg Kurz
2017-07-03 13:13 ` [Qemu-devel] [Qemu-ppc] " Daniel Henrique Barboza
2017-07-03 13:43 ` [Qemu-devel] " Igor Mammedov
2017-07-03 14:34 ` Greg Kurz
2017-07-04 3:31 ` Bharata B Rao
2017-07-04 3:50 ` Bharata B Rao
2017-07-04 8:02 ` Greg Kurz
2017-07-04 9:11 ` Bharata B Rao [this message]
2017-07-04 9:15 ` Greg Kurz
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=20170704091133.GC7689@in.ibm.com \
--to=bharata@linux.vnet.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--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 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.