[lkml]   [2011]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v4 0/7] x86: BSP or CPU0 online/offline
On 12/06/2011 04:05 PM, Ingo Molnar wrote:

> * Srivatsa S. Bhat <> wrote:
>>> But the hibernation angle should be considered. Hibernation
>>> already has to deal with the case where someone physically
>>> unplugs a CPU and then resumes from the disk image, right?
>>> How does the hibernation code handle that case currently?
>> Oh, wait a minute. Are we talking about physical CPU Hotplug
>> in between hibernation and restore? AFAIK, currently we don't
>> handle that at all. [...]
> Well, not hotplug, but plain old-fashioned: 'hibernate the box,
> take out a CPU physically and thaw' kind of hardware change.

Well, actually that's what I meant, taking this same idea a bit
further: hibernate the box, take out a CPU physically, insert a
slightly different CPU (which needs a different microcode image)
and thaw.

In this case, the other patch that I mentioned in my previous mail
would be required (or an equivalent), because the optimization
patch which is now in mainline, would apply the same old microcode
image on this new CPU too, blindly.

> How will the hibernation code handle this case?

I am not familiar with how the rest of the hibernation code handles
the case you described. I just happen to know about the microcode
case needing some more work for this to work reliably.

Srivatsa S. Bhat
IBM Linux Technology Center

 \ /
  Last update: 2011-12-06 11:51    [W:0.080 / U:43.904 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site