When Windows writes the CrashNotify bit in the CRASH_CTL MSR then we know
it is crashing, so set the domain shutdown code appropriately.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
if ( !ctl.u.CrashNotify )
break;
+ spin_lock(&d->shutdown_lock);
+ d->shutdown_code = SHUTDOWN_crash;
+ spin_unlock(&d->shutdown_lock);
+
gprintk(XENLOG_WARNING, "VIRIDIAN CRASH: %lx %lx %lx %lx %lx\n",
v->arch.hvm.viridian.crash_param[0],
v->arch.hvm.viridian.crash_param[1],