mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 22:45:17 +00:00
qemu: fix -global argument usage
* src/qemu/qemu_command.c (qemuBuildCommandLine): Pass two separate arguments, and fix indentation.
This commit is contained in:
parent
bfe87ece0e
commit
de6b8a0800
@ -4042,11 +4042,12 @@ 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)) {
|
||||||
|
virCommandAddArg(cmd, "-global");
|
||||||
if (qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE_QXL_VGA))
|
if (qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE_QXL_VGA))
|
||||||
virCommandAddArgFormat(cmd, "-global qxl-vga.vram_size=%u",
|
virCommandAddArgFormat(cmd, "qxl-vga.vram_size=%u",
|
||||||
def->videos[0]->vram * 1024);
|
def->videos[0]->vram * 1024);
|
||||||
else
|
else
|
||||||
virCommandAddArgFormat(cmd, "-global qxl.vram_size=%u",
|
virCommandAddArgFormat(cmd, "qxl.vram_size=%u",
|
||||||
def->videos[0]->vram * 1024);
|
def->videos[0]->vram * 1024);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user