aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/acpi/suspend.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-19 17:04:06 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-19 17:04:06 +0000
commit4b42d8556780613df8b529fa831045baf76d114f (patch)
tree4788d2de98d77d606e812b104ec7e55304adb970 /xen/arch/x86/acpi/suspend.c
parentff7c1b9e4f1fabb91b61a2d4daf0f7b665ab6644 (diff)
downloadxen-4b42d8556780613df8b529fa831045baf76d114f.tar.gz
xen-4b42d8556780613df8b529fa831045baf76d114f.tar.bz2
xen-4b42d8556780613df8b529fa831045baf76d114f.zip
x86: Ensure we execute LTR when running on non-compat GDT which has
busy bit clear in TSS descriptor. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/acpi/suspend.c')
-rw-r--r--xen/arch/x86/acpi/suspend.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xen/arch/x86/acpi/suspend.c b/xen/arch/x86/acpi/suspend.c
index e8a39fc6bc..8d83168b7a 100644
--- a/xen/arch/x86/acpi/suspend.c
+++ b/xen/arch/x86/acpi/suspend.c
@@ -31,13 +31,9 @@ void save_rest_processor_state(void)
void restore_rest_processor_state(void)
{
- int cpu = smp_processor_id();
- struct tss_struct *t = &init_tss[cpu];
struct vcpu *v = current;
- /* Rewriting the TSS desc is necessary to clear the Busy flag. */
- set_tss_desc(cpu, t);
- load_TR(cpu);
+ load_TR();
#if defined(CONFIG_X86_64)
/* Recover syscall MSRs */