Skip to content
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

Specialize vm_supervisor.vm for programs and instances #328

Merged
merged 6 commits into from
Jun 14, 2023

Conversation

hoh
Copy link
Member

@hoh hoh commented Jun 14, 2023

Replaces #323 with a different file structure and additional fixes.

This creates the following structure.

vm
├── firecracker
│   ├── executable.py
│   ├── __init__.py
│   ├── instance.py
│   └── program.py
└── __init__.py

Program and Instance both inherit from Executable.

One commit should be squashed: WIP: Code from branch andres_split_microvm_class

hoh and others added 6 commits June 12, 2023 19:37
Solution: Rename module `firecracker_microvm` into `firecracker_program`, in preparation to add new modules next to it.
Solution: Refactor in order to split generic methods shared by all firecracker virtual machines from program specific code.

This makes it possible to implement other types of execution on top of Firecracker such as Instances.

Co-authored-by: nesitor <[email protected]>
Solution:
1. Add support for running Instances with Firecracker.
2. Refactor all firecracker virtual machine code into a subpackage `vm_supervisor.vm.firecracker` to avoid namespace in filenames and in preparation for Qemu support.

Co-authored-by: nesitor <[email protected]>
@hoh hoh force-pushed the hoh-split-microvm-class branch from 8ab82da to 00b15fb Compare June 14, 2023 15:24
@hoh hoh merged commit ed2d04a into main Jun 14, 2023
@hoh hoh deleted the hoh-split-microvm-class branch June 14, 2023 15:24
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.

1 participant