changeset 484f50943e13 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=484f50943e13
description:
kvm: Initialize signal handlers from startupThread()
Signal handlers in KVM are controlled per thread and should be
initialized from the thread that is going to execute the CPU. This
changeset moves the initialization call from startup() to
startupThread().
diffstat:
src/cpu/kvm/base.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r c7fe7555d587 -r 484f50943e13 src/cpu/kvm/base.cc
--- a/src/cpu/kvm/base.cc Sat Mar 01 23:59:58 2014 -0600
+++ b/src/cpu/kvm/base.cc Mon Mar 03 14:31:39 2014 +0100
@@ -138,10 +138,6 @@
// point. Initialize virtual CPUs here instead.
vcpuFD = vm.createVCPU(vcpuID);
- // Setup signal handlers. This has to be done after the vCPU is
- // created since it manipulates the vCPU signal mask.
- setupSignalHandler();
-
// Map the KVM run structure */
vcpuMMapSize = kvm.getVCPUMMapSize();
_kvmRun = (struct kvm_run *)mmap(0, vcpuMMapSize,
@@ -182,6 +178,10 @@
const BaseKvmCPUParams * const p(
dynamic_cast<const BaseKvmCPUParams *>(params()));
+ // Setup signal handlers. This has to be done after the vCPU is
+ // created since it manipulates the vCPU signal mask.
+ setupSignalHandler();
+
setupCounters();
if (p->usePerfOverflow)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev