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
Pop pending events after pausing vm #1026
Conversation
I haven't tested these changes yet, therefore the draft mode. |
0dce317
to
f96bf70
Compare
Apparently it's not possible to process pause events immediately in |
62e0939
to
599c6ac
Compare
/cc @Wenzel |
599c6ac
to
322c6b4
Compare
Fyi, I've just discovered that there is still a bug in the implementation. |
@rageagainsthepc can you describe the bug you found ? |
@Wenzel Sure. My assumption that all pause events have been sent by kvm by the time we call |
e52003e
to
85c501b
Compare
11a56e6
to
a2831e1
Compare
It seems to work for me now. I guess this is ready for review again. 👍 |
LGTM on the review, but I haven't tested the PR. |
What about this PR? Is there something left to be done? |
a2831e1
to
bc35816
Compare
In some edge cases the pause event might not be the first event in the queue. This causes
kvm_resume_vm
to fail. Therefore we should process all pending events immediately after pausing the vm and let the pause event be inserted intopause_events_list
.