Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halt == spinning forever #199

Open
wenhuizhang opened this issue Aug 9, 2017 · 5 comments
Open

Halt == spinning forever #199

wenhuizhang opened this issue Aug 9, 2017 · 5 comments

Comments

@wenhuizhang
Copy link

When close using "poweroff", it does not close the qemu socket

@travisg
Copy link
Member

travisg commented Aug 10, 2017

Which qemu target were you running? It's possible that not all of the poweroff paths are implemented for every target.

@antoneliasson
Copy link

Reproducible on ARM (per the instructions in the README). Also happens for the reboot command

@travisg
Copy link
Member

travisg commented Aug 10, 2017

Ah yes that's just because the platform_halt() path isn't implemented on all of the platforms, and the default one just drops to a spin like that. It doesn't seem to be implemented in the qemu emulated ones, so that's the behavior that's expected. I'd be easy enough to add it for the qemu target.

@wenhuizhang
Copy link
Author

Qemu lm3s6965evb-test and also nearly all qemu arm versions

@travisg
Copy link
Member

travisg commented Aug 13, 2017

Correct. It has nothing at all to do with qemu, it's because the individual platform/target code in LK doesn't necessarily have the final mechanism to shut down the emulated system, so it has a fallback path that just spins the cpu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants