]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: rename QEMU_CAPS_MLOCK to QEMU_CAPS_REALTIME_MLOCK
authorHenning Schild <henning.schild@siemens.com>
Mon, 25 Jul 2016 12:44:16 +0000 (14:44 +0200)
committerCole Robinson <crobinso@redhat.com>
Tue, 26 Jul 2016 20:47:49 +0000 (16:47 -0400)
Purely cosmetic change to be consistent with the other names.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuxml2argvtest.c

index f600ce913c3c40ca0eae120da3c9f445f9181092..d5b73e645d86fe7e1d50576eed6e39f0b380d559 100644 (file)
@@ -2655,7 +2655,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
     { "machine", "vmport", QEMU_CAPS_MACHINE_VMPORT_OPT },
     { "drive", "discard", QEMU_CAPS_DRIVE_DISCARD },
     { "drive", "detect-zeroes", QEMU_CAPS_DRIVE_DETECT_ZEROES },
-    { "realtime", "mlock", QEMU_CAPS_MLOCK },
+    { "realtime", "mlock", QEMU_CAPS_REALTIME_MLOCK },
     { "boot-opts", "strict", QEMU_CAPS_BOOT_STRICT },
     { "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
     { "boot-opts", "splash-time", QEMU_CAPS_SPLASH_TIMEOUT },
index ca84f27084df73cbae7d76aed48fe1d2d0de9e85..bd5c6d99a55406a512381b65d8349daead4302aa 100644 (file)
@@ -254,7 +254,7 @@ typedef enum {
     QEMU_CAPS_MEM_MERGE, /* -machine mem-merge */
     QEMU_CAPS_VNC_WEBSOCKET, /* -vnc x:y,websocket */
     QEMU_CAPS_DRIVE_DISCARD, /* -drive discard=off(ignore)|on(unmap) */
-    QEMU_CAPS_MLOCK, /* -realtime mlock=on|off */
+    QEMU_CAPS_REALTIME_MLOCK, /* -realtime mlock=on|off */
 
     /* 150 */
     QEMU_CAPS_VNC_SHARE_POLICY, /* set display sharing policy */
index 4558b9f72623a76a7cc495ccf6eef58226280df3..3dc131b3dac26d5d50b1f827239f0e4c4c3fda90 100644 (file)
@@ -7022,12 +7022,12 @@ qemuBuildMemCommandLine(virCommandPtr cmd,
         qemuBuildMemPathStr(cfg, def, qemuCaps, cmd) < 0)
         return -1;
 
-    if (def->mem.locked && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_MLOCK)) {
+    if (def->mem.locked && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_REALTIME_MLOCK)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                        _("memory locking not supported by QEMU binary"));
         return -1;
     }
-    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_MLOCK)) {
+    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_REALTIME_MLOCK)) {
         virCommandAddArg(cmd, "-realtime");
         virCommandAddArgFormat(cmd, "mlock=%s",
                                def->mem.locked ? "on" : "off");
index 356f8435f561c8f85fdb73e4e8bd5acc3da48ca8..a5d51a8e5085a47fb118fea2e91e1a88fb2991ec 100644 (file)
@@ -1750,9 +1750,9 @@ mymain(void)
             QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_VIRTIO_SCSI,
             QEMU_CAPS_DEVICE_SCSI_GENERIC);
 
-    DO_TEST("mlock-on", QEMU_CAPS_MLOCK);
+    DO_TEST("mlock-on", QEMU_CAPS_REALTIME_MLOCK);
     DO_TEST_FAILURE("mlock-on", NONE);
-    DO_TEST("mlock-off", QEMU_CAPS_MLOCK);
+    DO_TEST("mlock-off", QEMU_CAPS_REALTIME_MLOCK);
     DO_TEST("mlock-unsupported", NONE);
 
     DO_TEST_PARSE_ERROR("pci-bridge-negative-index-invalid",