Skip to content

refactor memory alignment to VZVirtualMachineInstance#725

Open
yibozhuang wants to merge 1 commit intoapple:mainfrom
yibozhuang:linux-pod-memory-rounding
Open

refactor memory alignment to VZVirtualMachineInstance#725
yibozhuang wants to merge 1 commit intoapple:mainfrom
yibozhuang:linux-pod-memory-rounding

Conversation

@yibozhuang
Copy link
Copy Markdown
Contributor

@yibozhuang yibozhuang commented May 5, 2026

Move the MiB rounding from LinuxContainer into VZVirtualMachineInstance, so all callers are covered in one place and the alignment constraint stays with the VMM layer that owns it.

This will also ensure LinuxPod can get memory alignment for free.

Comment thread Sources/Containerization/LinuxPod.swift Outdated
Move the MiB rounding from LinuxContainer into
VZVirtualMachineInstance.toVZ(), so all
callers are covered in one place and the alignment
constraint stays with the VMM layer that owns it.
This will also ensure LinuxPod can get memory alignment
for free.
@yibozhuang yibozhuang force-pushed the linux-pod-memory-rounding branch from ea46526 to f1eb96d Compare May 6, 2026 00:23
@yibozhuang yibozhuang changed the title Round LinuxPod memory to MiB boundary refactor memory alignment to VZVirtualMachineInstance May 6, 2026
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