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

plat/kvm: Check return code of all memory region inserting methods #1052

Closed

Conversation

mogasergiu
Copy link
Member

@mogasergiu mogasergiu commented Aug 14, 2023

Make sure that we do check the return codes of all of the memory region inserting methods so that we can crash in case of failure, instead of letting the system run with a corrupted state.

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

Base target

  • Architecture(s): [e.g. x86_64 or N/A]
  • Platform(s): [e.g. kvm, xen or N/A]
  • Application(s): [e.g. app-python3 or N/A]

Additional configuration

Description of changes

@mogasergiu mogasergiu requested a review from a team as a code owner August 14, 2023 15:53
@unikraft-bot unikraft-bot added area/plat Unikraft Patform lang/c Issues or PRs to do with C/C++ plat/kvm Unikraft for KVM labels Aug 14, 2023
@razvand razvand requested review from mschlumpp and michpappas and removed request for vladandrew August 14, 2023 16:27
@razvand razvand assigned razvand and unassigned nderjung Aug 14, 2023
@razvand razvand removed the request for review from a team August 14, 2023 16:27
@razvand razvand added this to the v0.14.0 (Prometheus) milestone Aug 14, 2023
@mogasergiu mogasergiu force-pushed the smoga/check_rc_memregion branch 2 times, most recently from f84dfa3 to 9f84e66 Compare August 15, 2023 06:25
@mogasergiu mogasergiu requested a review from a team as a code owner August 15, 2023 06:25
@unikraft-bot unikraft-bot added the plat/common Common to all platforms label Aug 15, 2023
Copy link
Member

@mschlumpp mschlumpp left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Marco Schlumpp marco@unikraft.io

@mogasergiu
Copy link
Member Author

@michpappas Do not merge this until the prerequisite PR is in!

Copy link
Member

@michpappas michpappas left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Michalis Pappas michalis@unikraft.io

@michpappas
Copy link
Member

@michpappas Do not merge this until the prerequisite PR is in!

That would be @razvand :)

@razvand razvand removed the request for review from a team August 15, 2023 12:19
Make sure that we do check the return codes of all of the memory region
inserting methods so that we can crash in case of failure, instead
of letting the system run with a corrupted state.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Approved-by: Razvan Deaconescu razvand@unikraft.io

@unikraft-bot unikraft-bot added the ci/merged Merged by CI label Aug 15, 2023
@unikraft-bot
Copy link
Member

Checkpatch passed

Beep boop! I ran Unikraft's checkpatch.pl support script on your pull request and it all looks good!

SHA commit checkpatch
4698612 plat/kvm: Check return code of all memory region inserting methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plat Unikraft Patform ci/merged Merged by CI lang/c Issues or PRs to do with C/C++ plat/common Common to all platforms plat/kvm Unikraft for KVM
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

6 participants