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

Fix CPUFeatures crash on new->old CPU #134

Draft
wants to merge 8 commits into
base: crac
Choose a base branch
from

Conversation

jankratochvil
Copy link
Contributor

@jankratochvil jankratochvil commented Oct 25, 2023

  • reproducible on i7-1165G7 "qemu-kvm -cpu host" for a checkpoint and "qemu-kvm -cpu SandyBridge" for its restore

Progress

  • Change must not contain extraneous whitespace

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/134/head:pull/134
$ git checkout pull/134

Update a local copy of the PR:
$ git checkout pull/134
$ git pull https://git.openjdk.org/crac.git pull/134/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 134

View PR using the GUI difftool:
$ git pr show -t 134

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/crac/pull/134.diff

Webrev

Link to Webrev Comment

 - reproducible on i7-1165G7 "qemu-kvm -cpu host" for a checkpoint
   and "qemu-kvm -cpu SandyBridge" for its restore
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 25, 2023

👋 Welcome back jkratochvil! A progress list of the required criteria for merging this PR into crac will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Oct 25, 2023

@jankratochvil This change is no longer ready for integration - check the PR body for details.

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 25, 2023
@mlbridge
Copy link

mlbridge bot commented Oct 25, 2023

Webrevs

src/hotspot/share/runtime/crac_structs.hpp Outdated Show resolved Hide resolved
src/hotspot/share/runtime/crac.cpp Outdated Show resolved Hide resolved
src/hotspot/share/runtime/crac.cpp Outdated Show resolved Hide resolved
@bridgekeeper
Copy link

bridgekeeper bot commented Dec 5, 2023

@jankratochvil This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 2, 2024

@jankratochvil This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Jan 2, 2024
@jankratochvil
Copy link
Contributor Author

/open

@openjdk openjdk bot reopened this Jan 2, 2024
@openjdk
Copy link

openjdk bot commented Jan 2, 2024

@jankratochvil This pull request is now open

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 30, 2024

@jankratochvil This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 27, 2024

@jankratochvil This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Feb 27, 2024
@jankratochvil
Copy link
Contributor Author

/open

@openjdk openjdk bot reopened this Feb 27, 2024
@openjdk
Copy link

openjdk bot commented Feb 27, 2024

@jankratochvil This pull request is now open

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 26, 2024

@jankratochvil This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Copy link
Collaborator

@rvansa rvansa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for keeping this waiting for a long time. In the past I wasn't sure about using /tmp/ rather than shm_open target but since os::get_temp_directory() has this part hard-coded, too, I think it's acceptable to use that one.

I would prefer crac_restore_finalize to use an enum rather than a char but otherwise this looks good - and if it fixes some usecase, let's integrate it.

@jankratochvil
Copy link
Contributor Author

@rvansa Sorry for the review but we have been last week talking with @AntonKozlov I should rather do the full rework (move the CPUFeatures protection to the parent JDK before the JDK is restored) than this fix-up.

@jankratochvil jankratochvil marked this pull request as draft March 27, 2024 08:33
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 27, 2024
@bridgekeeper
Copy link

bridgekeeper bot commented May 22, 2024

@jankratochvil This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

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