commit | db912f963909b3cbc3a059b7528f6a1a1eb6ffae | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Thu May 24 12:23:10 2007 +0300 |
committer | Avi Kivity <avi@qumranet.com> | Mon Jul 16 12:05:49 2007 +0300 |
tree | 85d112b2879782fda2b2ca77413ac73361d0d3b0 | |
parent | e495606dd09d79f9fa496334ac3958f6ff179d82 [diff] |
HOTPLUG: Add CPU_DYING notifier KVM wants a notification when a cpu is about to die, so it can disable hardware extensions, but at a time when user processes cannot be scheduled on the cpu, so it doesn't try to use virtualization extensions after they have been disabled. This adds a CPU_DYING notification. The notification is called in atomic context on the doomed cpu. Signed-off-by: Avi Kivity <avi@qumranet.com>