x86/XPTI: fix S3 resume (and CPU offlining in general)
authorJan Beulich <jbeulich@suse.com>
Mon, 28 May 2018 09:20:26 +0000 (11:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 May 2018 09:20:26 +0000 (11:20 +0200)
We should index an L1 table with an L1 index.

Reported-by: Simon Gaiser <simon@invisiblethingslab.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/smpboot.c

index fd9050e0f69c11c3effee5015973bda1cfb3b6d9..d4478e61328274fff02897356502f9f64f1e824f 100644 (file)
@@ -883,7 +883,7 @@ static void cleanup_cpu_root_pgt(unsigned int cpu)
         l2_pgentry_t *l2t = l3e_to_l2e(l3t[l3_table_offset(stub_linear)]);
         l1_pgentry_t *l1t = l2e_to_l1e(l2t[l2_table_offset(stub_linear)]);
 
-        l1t[l2_table_offset(stub_linear)] = l1e_empty();
+        l1t[l1_table_offset(stub_linear)] = l1e_empty();
     }
 }