Skip to content

Conversation

@mattkur
Copy link
Contributor

@mattkur mattkur commented Nov 10, 2025

No description provided.

@github-actions github-actions bot added the unsafe Related to unsafe code label Nov 10, 2025
@github-actions
Copy link

⚠️ Unsafe Code Detected

This PR modifies files containing unsafe Rust code. Extra scrutiny is required during review.

For more on why we check whole files, instead of just diffs, check out the Rustonomicon

// a restore on a host that does not support restore.
//
// This will:
// 1) Create a DMA client, be sure to say that we require persistent memory (even though save_restore_supported will actually be false).
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good for handling the happy-path scenario but just wondering for a case where DMA fails to create persistent memory connections, do we fail here? If yes, maybe we need to think of a better fallback path as the host here doesn't support save-restore.

IMO we may allow it to proceed without saving the device state and when it live migrates off to a host that supports keepalive and private pool, we may need to allow the restore to happen successfully for such scenarios as well. Let me know your thoughts here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unsafe Related to unsafe code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants