aboutsummaryrefslogtreecommitdiff
path: root/posix-aio-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix-aio-compat.h')
-rw-r--r--posix-aio-compat.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/posix-aio-compat.h b/posix-aio-compat.h
index a1cdfd7f1f..1c5dcbd920 100644
--- a/posix-aio-compat.h
+++ b/posix-aio-compat.h
@@ -27,11 +27,18 @@
struct qemu_paiocb
{
int aio_fildes;
- void *aio_buf;
+ union {
+ struct iovec *aio_iov;
+ void *aio_ioctl_buf;
+ };
+ int aio_niov;
size_t aio_nbytes;
#define aio_ioctl_cmd aio_nbytes /* for QEMU_PAIO_IOCTL */
int ev_signo;
off_t aio_offset;
+ unsigned aio_flags;
+/* 512 byte alignment required for buffer, offset and length */
+#define QEMU_AIO_SECTOR_ALIGNED 0x01
/* private */
TAILQ_ENTRY(qemu_paiocb) node;