-
Notifications
You must be signed in to change notification settings - Fork 518
B #6772: Fix for NUMA and CPU Pinning Discrepancies During VM Save and Live Migration #6773
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
base: master
Are you sure you want to change the base?
B #6772: Fix for NUMA and CPU Pinning Discrepancies During VM Save and Live Migration #6773
Conversation
aabbba2 to
4764133
Compare
b480272 to
5988ca9
Compare
…VM Save and Live Migration Signed-off-by: Kristian Feldsam <[email protected]>
5988ca9 to
24b109d
Compare
Signed-off-by: Kristian Feldsam <[email protected]>
41d119e to
114b5b8
Compare
| os.str(""); | ||
|
|
||
| //Generate VM description file | ||
| os << "Generating migrate file: " << vm->get_migrate_file(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
| goto error_common; | ||
|
|
||
| error_file: | ||
| os << "migrate_action, error generating migrate file: " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
| //Generate VM description file | ||
| os << "Generating migrate file: " << vm->get_migrate_file(); | ||
|
|
||
| vm->log("VMM", Log::INFO, os); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
| //Generate VM description file | ||
| os << "Generating migrate file: " << vm->get_migrate_file(); | ||
|
|
||
| vm->log("VMM", Log::INFO, os); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
| ds_id = vm->get_previous_ds_id(); | ||
|
|
||
| //Generate VM description file | ||
| os << "Generating migrate file: " << vm->get_migrate_file(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
| goto error_common; | ||
|
|
||
| error_file: | ||
| os << "save_action, error generating migrate file: " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
Potential log injection detected. Ensure all untrusted input is properly sanitized before logging. Use parameterized logging or validate input against an allow list to prevent log injection vulnerabilities. Consider using a dedicated logging library's built-in sanitization features when available. Learn more - https://cwe.mitre.org/data/definitions/117.html
Description
This pull request addresses the issue with NUMA node and CPU pinning inconsistencies that occur during VM save and live migration. The migration process has been updated to ensure proper NUMA topology and CPU pinning adjustments, even for pinned VMs. Specifically, during save and live migration operations, the updated NUMA topology is now correctly passed using the --xml option, aligning the VM's configuration with the target host's resources.
Branches to which this PR applies