x86/mm/paging: Prevent the guest from faulting on the same gfn when dying
authorTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:12:44 +0000 (11:12 +0000)
committerTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:12:44 +0000 (11:12 +0000)
commit90e88dbae3bf93415fc40654c8ca213523ea556f
treeacfec368c710ca84252e9b9745c76117f480c2da
parent0806e3965914990286b62c120e95f09e4962152c
x86/mm/paging: Prevent the guest from faulting on the same gfn when dying

A crashing guest due to paging may hit an "endless" loop faulting repeatedly on
the current paged-out gfn, until the toolstack comes around to killing the
domain.

Unfortunately domain_crash at this point may not pause the vcpu due to the
shutting_down flag, so we pause it explicitly when detecting the condition.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c