On 20 March 2018 at 15:05, Michael S. Tsirkin <[email protected]> wrote: > I'm curious why does it take that path though. > Here's the rule > > #if defined(__linux__) && defined(__NR_userfaultfd) && defined(CONFIG_EVENTFD) > > If it's Linux we'll pick our own copy of the header > and so __NR_userfaultfd is defined. > > CONFIG_EVENTFD is not set?
CONFIG_EVENTFD is set. __NR_userfaultfd is not. It isn't defined in the system headers, and it's not defined in our linux-headers/asm-arm64/. Only x86, s390, powerpc and arm (32-bit) define it. I suspect the build would also fail on MIPS if I had a mips host in the build set. thanks -- PMM
