]> xenbits.xensource.com Git - xen.git/commitdiff
x86/XPTI: fix S3 resume (and CPU offlining in general)
authorJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 08:40:37 +0000 (10:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 08:40:37 +0000 (10:40 +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>
master commit: 6b9562dac1746014ab376bd2cf8ba400acf34c6d
master date: 2018-05-28 11:20:26 +0200

xen/arch/x86/smpboot.c

index f6abecd024a0778764c5fb783fd4d52668585885..bb3b1eccb793c1485e889fbfa5cf28deab8bf57e 100644 (file)
@@ -872,7 +872,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();
     }
 }