Skip to content

Support other vm types#209

Draft
PizieDust wants to merge 8 commits intomainfrom
vm_types
Draft

Support other vm types#209
PizieDust wants to merge 8 commits intomainfrom
vm_types

Conversation

@PizieDust
Copy link
Collaborator

This PR adds support in mollymawk for other vm types.
The supporting albatross PR is: robur-coop/albatross#250

@PizieDust PizieDust marked this pull request as draft January 28, 2026 07:18
try Ok (List.map (function `Int i -> i | _ -> failwith "not int") l)
with Failure e -> Error (`Msg ("cpuids must be int list: " ^ e))
in
Ok (Vmm_core.IS.of_list ids)
Copy link
Contributor

Choose a reason for hiding this comment

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

if it is the empty list/set, this should error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we enforce that the list cannot be empty we may have an issue with mollymawk starting, given that whenever we update a unikernel, we save the configuration of this update to the users profile so that we can do a rollback. This config will always error our as it doesnt have a "cpuids" in its json, and since it can't be empty, mollymawk fails to start.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

perhaps we need mollymawk to wipe all update logs after the rollback period has expired. then this problem goes away.

startup = info.startup;
fail_behaviour = info.fail_behaviour;
cpuid = info.cpuid;
memory = info.cpuid;
Copy link
Contributor

@hannesm hannesm Jan 28, 2026

Choose a reason for hiding this comment

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

that's a bugfix (that memory used to be the cpuid) which deserves a separate PR.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants