xpti: fix bug in double fault handling
authorJuergen Gross <jgross@suse.com>
Mon, 23 Apr 2018 14:13:01 +0000 (16:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Apr 2018 14:13:01 +0000 (16:13 +0200)
commitd80af845de7a4db01a4a3b4d779e0e0dcb5e738b
tree5d96e229145bbf52cd714af91badf5df2e1e9b5b
parentf26441439e5bacff948b172cb4d2da3ad8ec7ebd
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>
xen/arch/x86/x86_64/entry.S