提交 de6b8a08 编写于 作者: E Eric Blake

qemu: fix -global argument usage

* src/qemu/qemu_command.c (qemuBuildCommandLine): Pass two
separate arguments, and fix indentation.
上级 bfe87ece
...@@ -4042,12 +4042,13 @@ qemuBuildCommandLine(virConnectPtr conn, ...@@ -4042,12 +4042,13 @@ qemuBuildCommandLine(virConnectPtr conn,
if (def->videos[0]->type == VIR_DOMAIN_VIDEO_TYPE_QXL) { if (def->videos[0]->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
if (def->videos[0]->vram && if (def->videos[0]->vram &&
qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE)) { qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE)) {
if (qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE_QXL_VGA)) virCommandAddArg(cmd, "-global");
virCommandAddArgFormat(cmd, "-global qxl-vga.vram_size=%u", if (qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE_QXL_VGA))
def->videos[0]->vram * 1024); virCommandAddArgFormat(cmd, "qxl-vga.vram_size=%u",
else def->videos[0]->vram * 1024);
virCommandAddArgFormat(cmd, "-global qxl.vram_size=%u", else
def->videos[0]->vram * 1024); virCommandAddArgFormat(cmd, "qxl.vram_size=%u",
def->videos[0]->vram * 1024);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册