qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

file-posix: Handle EINTR in preallocation=full write

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit a1c81f4f16a74d0d544f5d3ac405bcaad83541fd)
Conflicts:
block/file-posix.c
* avoid dep on 93f4e2ff by adding check to raw_regular_truncate instead
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>

authored by

Fam Zheng and committed by
Michael Roth
aae299a6 b102aea5

+3
+3
block/file-posix.c
··· 1728 1728 num = MIN(left, 65536); 1729 1729 result = write(fd, buf, num); 1730 1730 if (result < 0) { 1731 + if (errno == EINTR) { 1732 + continue; 1733 + } 1731 1734 result = -errno; 1732 1735 error_setg_errno(errp, -result, 1733 1736 "Could not write zeros for preallocation");