[PATCHv4 4/4] qemu aio: enable support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Matthias Dahl <mdvirt@xxxxxxxxxxxxxxxxx>

qemu allows the user to choose what io storage api should be used, either the
default (threads) or native (linux aio) which in the latter case can result in
better performance.

Thanks a lot to Eric Blake and Matthias Bolte for their comments.

Red Hat Bugzilla #591703
Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
---

This is so simple, maybe it's worth squashing into 3/4?

 src/qemu/qemu_conf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 9f84988..87998c1 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -2526,6 +2526,11 @@ qemuBuildDriveStr(virDomainDiskDefPtr disk,
         }
     }

+    if (disk->aiomode && (qemuCmdFlags & QEMUD_CMD_FLAG_DRIVE_AIO)) {
+        virBufferVSprintf(&opt, ",aio=%s",
+                          qemuDiskAIOTypeToString(disk->aiomode));
+    }
+
     if (virBufferError(&opt)) {
         virReportOOMError();
         goto error;
-- 
1.7.0.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]