Skip to content

Commit bb077cb

Browse files
committed
uffd: enable non-blocking mode
1 parent be2d754 commit bb077cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/vmm/src/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ pub fn create_uffd_guest_memory(
732732
| FeatureFlags::PAGEFAULT_FLAG_WP,
733733
)
734734
.user_mode_only(false)
735+
.non_blocking(true)
735736
.create()
736737
.map_err(CreateUffdBuilder)?;
737738

src/vmm/src/persist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ pub(crate) fn guest_memory_from_uffd(
629629
| FeatureFlags::PAGEFAULT_FLAG_WP,
630630
)
631631
.user_mode_only(false)
632+
.non_blocking(true)
632633
.create()
633634
.map_err(CreateUffdBuilder)?;
634635

0 commit comments

Comments
 (0)