Skip to content

Commit 6d453c8

Browse files
committed
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 7419444 commit 6d453c8

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
@@ -587,6 +587,9 @@ pub fn build_microvm_from_snapshot(
587587
vmm.uffd = uffd;
588588
vmm.uffd_socket = socket;
589589

590+
#[cfg(target_arch = "x86_64")]
591+
vmm.vm.set_memory_private().map_err(VmmError::Vm)?;
592+
590593
#[cfg(target_arch = "x86_64")]
591594
{
592595
// Scale TSC to match, extract the TSC freq from the state if specified

0 commit comments

Comments
 (0)