Skip to content

Commit

Permalink
Removed old and unused SHUTDOWN_PORT for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jounathaen committed Jun 2, 2023
1 parent 883aab6 commit d807c98
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/macos/x86_64/vcpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,16 +772,8 @@ impl VirtualCPU for UhyveCPU {
}
self.vcpu.write_register(&Register::RIP, rip + len)?;
} else {
match port {
// TODO: Deprecate (not used in Linux anyway)
SHUTDOWN_PORT => {
return Ok(VcpuStopReason::Exit(0));
}
_ => {
error!("Receive unhandled output command at port 0x{:x}", port);
self.vcpu.write_register(&Register::RIP, rip + len)?;
}
}
error!("Receive unhandled output command at port 0x{:x}", port);
self.vcpu.write_register(&Register::RIP, rip + len)?;
}
}
vmx_reason => {
Expand Down

0 comments on commit d807c98

Please sign in to comment.