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.
_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;
void
BaseKvmCPU::setupInstStop()
{
-
if (comInstEventQueue[0]->empty()) {
setupInstCounter(0);
} else {