Repository navigation
Fix invalid-guest-state entry by updating state when CR0.PG cleared. - #239
Merged
Merged
Conversation
Member
Author
|
Since this seems to happen on almost every hyperkit PR, maybe we should a stage in Circle CI to ping @djs55 automatically |
Collaborator
["cherry picked" from machyve/xhyve@cc672d5] Recent Linux kernels (late 4.17) disable paging temporarily when in long-mode. Handle this case by updating guest and VM state to make sure they are in sync: EFER.LMA is cleared, and the 'IA-32e mode guest' entry control is set to 0. This is effectively the reverse operation to the existing case when CR0.PG is set. Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
Member
Author
|
rebased onto #240. Will merge on green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
["cherry picked" from https://github.com/machyve/xhyve/commit/cc672d5363766e7c2bf10e02ca12efbeda74c487]
Recent Linux kernels (late 4.17) disable paging temporarily
when in long-mode. Handle this case by updating guest and VM
state to make sure they are in sync: EFER.LMA is cleared,
and the 'IA-32e mode guest' entry control is set to 0.
This is effectively the reverse operation to the existing case
when CR0.PG is set.
Signed-off-by: Rolf Neugebauer rn@rneugeba.io
Thanks to @grehan-freebsd for the pointer. This lets me boot a 4.19.7 kernel without issue.
resolves #226