} else {
uint64_t start_cycles;
- PrintDebug("CPU Yield\n");
+ PrintDebug(info->vm_info, info, "CPU Yield\n");
start_cycles = v3_get_host_time(&info->time_state);
v3_advance_time(info, &cycles);
v3_update_timers(info);
+
+
/* At this point, we either have some combination of
interrupts, including perhaps a timer interrupt, or
/* asm("hlt"); */
}
+ // participate in any barrier that might be raised
+ v3_wait_at_barrier(info);
+
+ // stop if the VM is being halted or core is being reset
+ if (info->core_run_state == CORE_STOPPED || info->core_run_state == CORE_RESETTING) {
+ break;
+ }
+
}
- /* V3_Print("palacios: done with halt\n"); */
+ /* V3_Print(info->vm_info, info, "palacios: done with halt\n"); */
info->rip += 1;
}