public inbox for linux-hotplug@vger.kernel.org
 help / color / mirror / Atom feed
* a problem of preparing before cpu hot remove
@ 2013-07-31  3:56 chenfan
  2013-07-31  4:06 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: chenfan @ 2013-07-31  3:56 UTC (permalink / raw)
  To: linux-hotplug

Hi All,

Recently, I'm implementing cpu hot-remove for QEMU. I has a question
that there is no chance for applications to prepare vcpu-hotremove
before cpu down. 
For example, if user specify cpu-pin for some applications, and its cpu
is removed, there is no notification to udev for preparing to do some
repin before cpu down. the applications would not change setting before
cpu down.

I want to know that whether there is a scenario that can notify the
applications for preparing before cpu down. and if preparing fails, I
want the cpu remove failure.

Thanks,
Chen


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: a problem of preparing before cpu hot remove
  2013-07-31  3:56 a problem of preparing before cpu hot remove chenfan
@ 2013-07-31  4:06 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2013-07-31  4:06 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Jul 31, 2013 at 11:56:27AM +0800, chenfan wrote:
> Hi All,
> 
> Recently, I'm implementing cpu hot-remove for QEMU. I has a question
> that there is no chance for applications to prepare vcpu-hotremove
> before cpu down. 
> For example, if user specify cpu-pin for some applications, and its cpu
> is removed, there is no notification to udev for preparing to do some
> repin before cpu down. the applications would not change setting before
> cpu down.
> 
> I want to know that whether there is a scenario that can notify the
> applications for preparing before cpu down. and if preparing fails, I
> want the cpu remove failure.

Right now, there isn't one, but I suggest working with the kernel ACPI
developers as they are working on some kind of notification for this
thing for CPUs and memory, as memory has the same issue that CPUs do.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-31  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31  3:56 a problem of preparing before cpu hot remove chenfan
2013-07-31  4:06 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox