changeset e672a39fd426 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e672a39fd426
description:
kvm: Service events in the instruction event queues
This changset adds calls to the service the instruction event queues
that accidentally went missing from commit [0063c7dd18ec]. The
original commit only included the code needed to schedule instruction
stops from KVM and missed the functionality to actually service the
events.
diffstat:
src/cpu/kvm/base.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r cb74b075186e -r e672a39fd426 src/cpu/kvm/base.cc
--- a/src/cpu/kvm/base.cc Wed Oct 02 06:08:45 2013 -0400
+++ b/src/cpu/kvm/base.cc Thu Oct 03 11:00:18 2013 +0200
@@ -540,6 +540,12 @@
_status = Running;
}
+ // Service any pending instruction events. The vCPU should
+ // have exited in time for the event using the instruction
+ // counter configured by setupInstStop().
+ comInstEventQueue[0]->serviceEvents(ctrInsts);
+ system->instEventQueue.serviceEvents(system->totalNumInsts);
+
if (tryDrain())
_status = Idle;
} break;
@@ -1179,7 +1185,6 @@
void
BaseKvmCPU::setupInstStop()
{
-
if (comInstEventQueue[0]->empty()) {
setupInstCounter(0);
} else {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev