summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-05-14 15:59:43 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-05-14 15:59:43 +0200
commit3ba93822ccae1dcc5e47c6909d7e690d784ec0e1 (patch)
tree91c69f0579a62ef2ee8061ac527f01f1f55cac0d /src/cpu
parent98483ba858e18d1376b86fc7e871e0762bee827c (diff)
downloadgem5-3ba93822ccae1dcc5e47c6909d7e690d784ec0e1.tar.xz
kvm: Dump state before panic in KVM exit handlers
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/kvm/base.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc
index f087b7b1a..7435d4364 100644
--- a/src/cpu/kvm/base.cc
+++ b/src/cpu/kvm/base.cc
@@ -735,6 +735,7 @@ BaseKvmCPU::handleKvmExit()
_kvmRun->internal.suberror);
default:
+ dump();
panic("KVM: Unexpected exit (exit_reason: %u)\n", _kvmRun->exit_reason);
}
}
@@ -764,6 +765,7 @@ BaseKvmCPU::handleKvmExitIRQWindowOpen()
Tick
BaseKvmCPU::handleKvmExitUnknown()
{
+ dump();
panic("KVM: Unknown error when starting vCPU (hw reason: 0x%llx)\n",
_kvmRun->hw.hardware_exit_reason);
}
@@ -771,6 +773,7 @@ BaseKvmCPU::handleKvmExitUnknown()
Tick
BaseKvmCPU::handleKvmExitException()
{
+ dump();
panic("KVM: Got exception when starting vCPU "
"(exception: %u, error_code: %u)\n",
_kvmRun->ex.exception, _kvmRun->ex.error_code);
@@ -779,6 +782,7 @@ BaseKvmCPU::handleKvmExitException()
Tick
BaseKvmCPU::handleKvmExitFailEntry()
{
+ dump();
panic("KVM: Failed to enter virtualized mode (hw reason: 0x%llx)\n",
_kvmRun->fail_entry.hardware_entry_failure_reason);
}