Skip to content

Commit 74d9986

Browse files
kalyazinroypat
authored andcommitted
tmp(vmm): set private memory attribute on x86
This will be removed after upgrading to a new version of mmap support kernel patches. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 18edbd0 commit 74d9986

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vmm/src/builder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ pub fn build_microvm_from_snapshot(
622622
vmm.uffd = uffd;
623623
vmm.uffd_socket = socket;
624624

625+
#[cfg(target_arch = "x86_64")]
626+
vmm.vm.set_memory_private().map_err(VmmError::Vm)?;
627+
625628
#[cfg(target_arch = "x86_64")]
626629
{
627630
// Scale TSC to match, extract the TSC freq from the state if specified

0 commit comments

Comments
 (0)