Discussion:
a problem of preparing before cpu hot remove
chenfan
2013-07-31 03:56:27 UTC
Permalink
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

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2013-07-31 04:06:25 UTC
Permalink
Post by chenfan
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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Continue reading on narkive:
Loading...