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

x86: lib: spin upon power off failure #11

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

junjiemao1
Copy link
Contributor

The function exit() is not expected to return and can cause unpredictable
behavior if it does instead. The current implementation attempts to power off
the platform using multiple ways but assumes at least one of it succeeds, which
is not the case atop ACRN hypervisor in partition mode.

This patch adds a dead loop at the end of exit() to make sure that a unit-test
spins when the platform cannot be powered off and causes no unwanted misbehavior.

Signed-off-by: Junjie Mao junjie.mao@intel.com

The function exit() is not expected to return and can cause unpredictable
behavior if it does instead. The current implementation attempts to power off
the platform using multiple ways but assumes at least one of it succeeds, which
is not the case atop ACRN hypervisor in partition mode.

This patch adds a dead loop at the end of exit() to make sure that a unit-test
spins when the platform cannot be powered off and causes no unwanted misbehavior.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
@wenlingz wenlingz merged commit 1ba40a3 into projectacrn:master Sep 18, 2019
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

Successfully merging this pull request may close these issues.

3 participants