Skip to content

Commit

Permalink
ignore halt state => guest is switching in polling mode (#14)
Browse files Browse the repository at this point in the history
- currently only the idle loop is using the hlt instruction
- if we ignore the instruction, the idle loop get computation times => active waiting for a new task
  • Loading branch information
stlankes committed May 14, 2020
1 parent 1961a5a commit 4a2381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/vcpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl VirtualCPU for UhyveCPU {
match exitreason {
VcpuExit::Hlt => {
debug!("Halt Exit");
break;
// currently, we ignore the hlt state
}
VcpuExit::Shutdown => {
self.print_registers();
Expand Down

0 comments on commit 4a2381c

Please sign in to comment.