Skip to content

Conversation

@feldsam
Copy link
Contributor

@feldsam feldsam commented Nov 4, 2024

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

  • master
  • one-X.X

  • Check this if this PR should not be squashed

…VM Save and Live Migration

Signed-off-by: Kristian Feldsam <[email protected]>
@feldsam feldsam force-pushed the feldsam/enhanced-migrate-numa-vms branch from 5988ca9 to 24b109d Compare December 20, 2024 15:47
Signed-off-by: Kristian Feldsam <[email protected]>
@feldsam feldsam force-pushed the feldsam/enhanced-migrate-numa-vms branch from 41d119e to 114b5b8 Compare December 20, 2024 16:49
@rsmontero rsmontero self-assigned this Jan 27, 2025
@rsmontero rsmontero removed this from the Release 6.10.3 milestone Jan 30, 2025
@rsmontero rsmontero added this to the Release 7.0 milestone Jan 30, 2025
@tinova tinova modified the milestones: Release 7.0, Release 7.0.1 Jul 3, 2025
os.str("");

//Generate VM description file
os << "Generating migrate file: " << vm->get_migrate_file();
Copy link
Member

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: "
Copy link
Member

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);
Copy link
Member

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);
Copy link
Member

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();
Copy link
Member

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: "
Copy link
Member

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

@rsmontero rsmontero removed this from the Release 7.0.1 milestone Oct 21, 2025
@rsmontero rsmontero removed their assignment Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants