Re: [PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-06 Thread Juan Quintela
Peter Xu wrote: > On Fri, Feb 03, 2023 at 10:01:04PM +0100, Juan Quintela wrote: >> Peter Xu wrote: >> > On Thu, Feb 02, 2023 at 11:52:21AM +0100, Juan Quintela wrote: >> >> Peter Xu wrote: >> >> > Teach QEMU to use /dev/userfaultfd when it existed and fallback to the >> >> > system call if eith

Re: [PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-06 Thread Peter Xu
On Fri, Feb 03, 2023 at 10:01:04PM +0100, Juan Quintela wrote: > Peter Xu wrote: > > On Thu, Feb 02, 2023 at 11:52:21AM +0100, Juan Quintela wrote: > >> Peter Xu wrote: > >> > Teach QEMU to use /dev/userfaultfd when it existed and fallback to the > >> > system call if either it's not there or doe

Re: [PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-03 Thread Juan Quintela
Peter Xu wrote: > On Thu, Feb 02, 2023 at 11:52:21AM +0100, Juan Quintela wrote: >> Peter Xu wrote: >> > Teach QEMU to use /dev/userfaultfd when it existed and fallback to the >> > system call if either it's not there or doesn't have enough permission. >> > >> > Firstly, as long as the app has pe

Re: [PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-02 Thread Peter Xu
On Thu, Feb 02, 2023 at 11:52:21AM +0100, Juan Quintela wrote: > Peter Xu wrote: > > Teach QEMU to use /dev/userfaultfd when it existed and fallback to the > > system call if either it's not there or doesn't have enough permission. > > > > Firstly, as long as the app has permission to access /dev/

Re: [PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-02 Thread Juan Quintela
Peter Xu wrote: > Teach QEMU to use /dev/userfaultfd when it existed and fallback to the > system call if either it's not there or doesn't have enough permission. > > Firstly, as long as the app has permission to access /dev/userfaultfd, it > always have the ability to trap kernel faults which QEM

[PATCH v2 3/3] util/userfaultfd: Support /dev/userfaultfd

2023-02-01 Thread Peter Xu
Teach QEMU to use /dev/userfaultfd when it existed and fallback to the system call if either it's not there or doesn't have enough permission. Firstly, as long as the app has permission to access /dev/userfaultfd, it always have the ability to trap kernel faults which QEMU mostly wants. Meanwhile,