Skip to content

Conversation

tjones60
Copy link
Contributor

Since OpenHCL now supports ephemeral guest state, VMGS saved state is now optional. This change fixes servicing state backwards compatibility by using a separate bool and bogus values instead of an actual optional.

@tjones60 tjones60 requested a review from a team as a code owner July 16, 2025 17:50
@@ -84,6 +84,8 @@ mod state {
pub dma_manager_state: Option<OpenhclDmaManagerState>,
#[mesh(10002)]
pub vmbus_client: Option<vmbus_client::SavedState>,
#[mesh(10003)]
pub use_vmgs: bool,
Copy link
Member

Choose a reason for hiding this comment

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

should we use an enum or bool for future compatability, or do we not think we will need anything else?

}),
},
disk_get_vmgs::save_restore::SavedBlockStorageMetadata {
capacity: u64::MAX,
Copy link
Member

Choose a reason for hiding this comment

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

i feel like MAX is worse than 0 for some of these values? IE sizes and count seem like 0 should be better?

@tjones60
Copy link
Contributor Author

We have decided not to change this, since it won't be hit in any current production scenarios and we need a way to reject servicing to an older version if new features are enabled anyway.

@tjones60 tjones60 closed this Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants