Skip to content

Commit

Permalink
hot-fix: Allow unpriviledged userfaultfd
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelthegreat authored Dec 7, 2024
1 parent cde84e4 commit 8ee672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_core/page_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ constexpr size_t PAGEBITS = 12;
#ifdef ENABLE_USERFAULTFD
struct PageManager::Impl {
Impl(Vulkan::Rasterizer* rasterizer_) : rasterizer{rasterizer_} {
uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY);
ASSERT_MSG(uffd != -1, "{}", Common::GetLastErrorMsg());

// Request uffdio features from kernel.
Expand Down

0 comments on commit 8ee672f

Please sign in to comment.