Handle userfaultfd API ioctl on older kernel hosts

On older kernels on host it's possible that minor-fault feature doesn't
exist, in which case the ioctl may fail with EINVAL. This CL detects the
failure reason and retries the ioctl without it.

Bug: 160737021
Test: art/test/testrunner/testrunner.py --host
Change-Id: Ibd55933ec985f5e62fdaa9dd85ed57d544546d18
1 file changed