mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +03:00
qemu aio: parse aio support from qemu -help
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
91ef4e05ea
commit
f19357ce37
@ -809,6 +809,8 @@ qemuCapsComputeCmdFlags(const char *help,
|
||||
flags |= QEMUD_CMD_FLAG_DRIVE_FORMAT;
|
||||
if (strstr(help, "readonly="))
|
||||
flags |= QEMUD_CMD_FLAG_DRIVE_READONLY;
|
||||
if (strstr(help, "aio=threads|native"))
|
||||
flags |= QEMUD_CMD_FLAG_DRIVE_AIO;
|
||||
}
|
||||
if ((p = strstr(help, "-vga")) && !strstr(help, "-std-vga")) {
|
||||
const char *nl = strstr(p, "\n");
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* qemu_capabilities.h: QEMU capabilities generation
|
||||
*
|
||||
* Copyright (C) 2006-2007, 2009-2010 Red Hat, Inc.
|
||||
* Copyright (C) 2006-2011 Red Hat, Inc.
|
||||
* Copyright (C) 2006 Daniel P. Berrange
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@ -85,6 +85,7 @@ enum qemuCapsFlags {
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD = (1LL << 48), /* -incoming fd:n */
|
||||
QEMUD_CMD_FLAG_BOOTINDEX = (1LL << 49), /* -device bootindex property */
|
||||
QEMUD_CMD_FLAG_HDA_DUPLEX = (1LL << 50), /* -device hda-duplex */
|
||||
QEMUD_CMD_FLAG_DRIVE_AIO = (1LL << 51), /* -drive aio= supported */
|
||||
};
|
||||
|
||||
virCapsPtr qemuCapsInit(virCapsPtr old_caps);
|
||||
|
@ -309,7 +309,8 @@ mymain(int argc, char **argv)
|
||||
QEMUD_CMD_FLAG_NAME_PROCESS |
|
||||
QEMUD_CMD_FLAG_SMBIOS_TYPE |
|
||||
QEMUD_CMD_FLAG_VGA_NONE |
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD,
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD |
|
||||
QEMUD_CMD_FLAG_DRIVE_AIO,
|
||||
12001, 0, 0);
|
||||
DO_TEST("qemu-kvm-0.12.1.2-rhel60",
|
||||
QEMUD_CMD_FLAG_VNC_COLON |
|
||||
@ -349,7 +350,8 @@ mymain(int argc, char **argv)
|
||||
QEMUD_CMD_FLAG_VGA_QXL |
|
||||
QEMUD_CMD_FLAG_SPICE |
|
||||
QEMUD_CMD_FLAG_VGA_NONE |
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD,
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD |
|
||||
QEMUD_CMD_FLAG_DRIVE_AIO,
|
||||
12001, 1, 0);
|
||||
DO_TEST("qemu-kvm-0.12.3",
|
||||
QEMUD_CMD_FLAG_VNC_COLON |
|
||||
@ -386,7 +388,8 @@ mymain(int argc, char **argv)
|
||||
QEMUD_CMD_FLAG_NAME_PROCESS |
|
||||
QEMUD_CMD_FLAG_SMBIOS_TYPE |
|
||||
QEMUD_CMD_FLAG_VGA_NONE |
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD,
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD |
|
||||
QEMUD_CMD_FLAG_DRIVE_AIO,
|
||||
12003, 1, 0);
|
||||
DO_TEST("qemu-kvm-0.13.0",
|
||||
QEMUD_CMD_FLAG_VNC_COLON |
|
||||
@ -431,7 +434,8 @@ mymain(int argc, char **argv)
|
||||
QEMUD_CMD_FLAG_SMBIOS_TYPE |
|
||||
QEMUD_CMD_FLAG_SPICE |
|
||||
QEMUD_CMD_FLAG_VGA_NONE |
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD,
|
||||
QEMUD_CMD_FLAG_MIGRATE_QEMU_FD |
|
||||
QEMUD_CMD_FLAG_DRIVE_AIO,
|
||||
13000, 1, 0);
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user