Skip to content

Conversation

@peppergrayxyz
Copy link
Contributor

  • make default_guest_memory conditonal for x86_64
  • update create_guest_memory to current signature
  • reorder aarch64 test case to mimic x86_64 test
  • fix dead code warning for Payload::None

Fixes: #441

- make default_guest_memory conditonal for x86_64
- update create_guest_memory to current signature
- reorder aarch64 test case to mimic x86_64 test
- fix dead code warning for Payload::None

Fixes: containers#441
Signed-off-by: Pepper Gray <[email protected]>
let vm_resources = VmResources::default();

let (guest_memory, _arch_memory_info, _shm_manager, _payload_config) =
create_guest_memory(128, &vm_resources, &Payload::Empty).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for taking some time to fix this!

I think it'd be better changing default_guest_memory above to create an empty VmResources (VmResources::default()) and creating the memory with an empty payload (Payload::Empty) so it can be used both in x86_64 and aarch64 tests.

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.

vmm: variant or associated item KernelMmap not found for this enum

2 participants