diff options
author | Ben Guthro <benjamin.guthro@citrix.com> | 2013-04-02 09:52:32 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-04-02 09:52:32 +0200 |
commit | 41e71c2607e036f1ac00df898b8f4acb2d4df7ee (patch) | |
tree | bb768df8cdebd22eabbfa39e8f8d5c1ff4fbf00e /xen/arch/x86/acpi | |
parent | af699220ad6d111ba76fc3040342184e423cc9a1 (diff) | |
download | xen-41e71c2607e036f1ac00df898b8f4acb2d4df7ee.tar.gz xen-41e71c2607e036f1ac00df898b8f4acb2d4df7ee.tar.bz2 xen-41e71c2607e036f1ac00df898b8f4acb2d4df7ee.zip |
x86/S3: Restore broken vcpu affinity on resume
When in SYS_STATE_suspend, and going through the cpu_disable_scheduler
path, save a copy of the current cpu affinity, and mark a flag to
restore it later.
Later, in the resume process, when enabling nonboot cpus restore these
affinities.
Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/acpi')
-rw-r--r-- | xen/arch/x86/acpi/power.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c index 3c2585cfb8..f41f0de1bc 100644 --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -96,7 +96,10 @@ static void thaw_domains(void) rcu_read_lock(&domlist_read_lock); for_each_domain ( d ) + { + restore_vcpu_affinity(d); domain_unpause(d); + } rcu_read_unlock(&domlist_read_lock); } |