aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/acpi
diff options
context:
space:
mode:
authorBen Guthro <benjamin.guthro@citrix.com>2013-04-02 09:52:32 +0200
committerJan Beulich <jbeulich@suse.com>2013-04-02 09:52:32 +0200
commit41e71c2607e036f1ac00df898b8f4acb2d4df7ee (patch)
treebb768df8cdebd22eabbfa39e8f8d5c1ff4fbf00e /xen/arch/x86/acpi
parentaf699220ad6d111ba76fc3040342184e423cc9a1 (diff)
downloadxen-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.c3
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);
}