]> xenbits.xensource.com Git - xen.git/commitdiff
mm: don't use domain_shutdown() when re-offlining a page
authorJan Beulich <jbeulich@suse.com>
Thu, 7 Dec 2017 10:09:31 +0000 (11:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Dec 2017 10:09:31 +0000 (11:09 +0100)
It goes all silent, leaving open what has actually caused the crash.
Use domain_crash() instead, which leaves a log message before calling
domain_shutdown(..., SHUTDOWN_crash).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/page_alloc.c

index 5616a8226376a1727a62423e3a54e123d8fc0a78..c0c2d82906bdb37eb3c3975ced38840b4ebc7292 100644 (file)
@@ -1546,7 +1546,7 @@ int offline_page(unsigned long mfn, int broken, uint32_t *status)
     if ( (pg->count_info & PGC_broken) && (owner = page_get_owner(pg)) )
     {
         *status = PG_OFFLINE_AGAIN;
-        domain_shutdown(owner, SHUTDOWN_crash);
+        domain_crash(owner);
         return 0;
     }