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

Expose VmType to the public interface #97

Merged
merged 2 commits into from
Jul 7, 2023
Merged

Conversation

jinankjain
Copy link
Collaborator

@jinankjain jinankjain commented Jun 30, 2023

Summary of the PR

VmType is needed by cloud hypervisor when trying to create a VM. Thus, we need to expose it to the public interface along with it also add support to convert u64 to VmType.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

mshv-ioctls/src/ioctls/vm.rs Outdated Show resolved Hide resolved
mshv-ioctls/src/ioctls/vm.rs Show resolved Hide resolved
Copy link
Member

@liuw liuw left a comment

Choose a reason for hiding this comment

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

Approved with Nuno's comment fixed.

Since VmType would be use by Cloud Hypervisor while creating the VM. So
we need to expose it to the public interface.

Signed-off-by: Jinank Jain <[email protected]>
This is required to convert a u64 to VmType. On the cloud hypervisor
side, we would have a u64 as vm type which needs to be converted to
VmType when invoking create_vm from MSHV crate.

Signed-off-by: Jinank Jain <[email protected]>
@jinankjain jinankjain merged commit 063d828 into rust-vmm:main Jul 7, 2023
2 checks passed
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.

4 participants