xpti: fix bug in double fault handling
authorJuergen Gross <jgross@suse.com>
Fri, 18 May 2018 10:10:49 +0000 (12:10 +0200)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 May 2018 17:41:33 +0000 (18:41 +0100)
commit65bc42b72409d1dc5d1ec7e72218292dab8757ea
treea8e9a98cb9a4b203c5978c72f43565d1165b396a
parent048288e04587fe030db48dd9bf192afc342979af
xpti: fix bug in double fault handling

When entering the hypervisor via the double fault handler resetting
xen_cr3 was missing. This led to switching to pv_cr3 when returning
from the next following exception, so repair this in order to allow
exception handling to work even after a double fault.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: d80af845de7a4db01a4a3b4d779e0e0dcb5e738b
master date: 2018-04-23 16:13:01 +0200

(cherry picked from commit 210bd51a2e7ba0063fe5695fef441ac2d52d8f2e)

Gbp-Pq: Name xpti-fix-bug-in-double-fault-handling.patch
xen/arch/x86/x86_64/entry.S