Skip to content

Commit

Permalink
xen-detect: reset xen_pv_context to 0 after a SIGILL is caught
Browse files Browse the repository at this point in the history
reported by Steven @ Rack911
  • Loading branch information
kaniini committed Jan 29, 2014
1 parent 23fca3d commit beca1d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xen-detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ static bool xen_check_outer(void)

/* not HVM... catch SIGILL in case we're running outside Xen */
if (setjmp(xen_sigill_jmp))
{
xen_pv_context = 0;
return false;
}

memset(&act, 0, sizeof act);
act.sa_handler = xen_sigill_handler;
Expand Down

0 comments on commit beca1d8

Please sign in to comment.