changeset a1ea7e67a9d9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a1ea7e67a9d9
description:
kvm: Dump state before panic in KVM exit handlers
diffstat:
src/cpu/kvm/base.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (35 lines):
diff -r cce7dd32aed3 -r a1ea7e67a9d9 src/cpu/kvm/base.cc
--- a/src/cpu/kvm/base.cc Tue May 14 15:56:04 2013 +0200
+++ b/src/cpu/kvm/base.cc Tue May 14 15:59:43 2013 +0200
@@ -735,6 +735,7 @@
_kvmRun->internal.suberror);
default:
+ dump();
panic("KVM: Unexpected exit (exit_reason: %u)\n",
_kvmRun->exit_reason);
}
}
@@ -764,6 +765,7 @@
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 @@
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 @@
Tick
BaseKvmCPU::handleKvmExitFailEntry()
{
+ dump();
panic("KVM: Failed to enter virtualized mode (hw reason: 0x%llx)\n",
_kvmRun->fail_entry.hardware_entry_failure_reason);
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev