Home | History | Annotate | Download | only in vm

Lines Matching refs:uffdio_copy

36  * transfer (UFFDIO_COPY).
397 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy,
400 uffd_test_ops->alias_mapping(&uffdio_copy->dst,
401 uffdio_copy->len,
403 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) {
405 if (uffdio_copy->copy != -EEXIST)
406 fprintf(stderr, "UFFDIO_COPY retry error %Ld\n",
407 uffdio_copy->copy), exit(1);
409 fprintf(stderr, "UFFDIO_COPY retry unexpected %Ld\n",
410 uffdio_copy->copy), exit(1);
416 struct uffdio_copy uffdio_copy;
421 uffdio_copy.dst = (unsigned long) area_dst + offset;
422 uffdio_copy.src = (unsigned long) area_src + offset;
423 uffdio_copy.len = page_size;
424 uffdio_copy.mode = 0;
425 uffdio_copy.copy = 0;
426 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) {
428 if (uffdio_copy.copy != -EEXIST)
429 fprintf(stderr, "UFFDIO_COPY error %Ld\n",
430 uffdio_copy.copy), exit(1);
431 } else if (uffdio_copy.copy != page_size) {
432 fprintf(stderr, "UFFDIO_COPY unexpected copy %Ld\n",
433 uffdio_copy.copy), exit(1);
437 retry_copy_page(ufd, &uffdio_copy, offset);
623 * UFFDIO_COPY without writing zero pages into area_dst
707 * Use UFFDIO_COPY to allocate missing page and retry. For signal_test = 2
1150 * UFFDIO_COPY. UFFDIO_COPY will read the zapped
1152 * course such a UFFDIO_COPY is perfectly safe as it'd
1154 * bounce though: that racing UFFDIO_COPY would