[libvirt] [PATCH] RFC: support "vram" and "heads" for qxl vga
Eric Blake
eblake at redhat.com
Fri Mar 11 17:02:05 UTC 2011
On 02/15/2011 06:47 AM, Osier Yang wrote:
> qemu command line to specify "vram":
> -global qxl.vram_size=uint
>
> + if (def->videos[0]->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
> + if (def->videos[0]->vram &&
> + (qemuCmdFlags & QEMUD_CMD_FLAG_GLOBAL)) {
> + virCommandAddArgFormat(cmd, "-global qxl.vram_size=%u",
> + def->videos[0]->vram);
> + }
Ouch - this needs to be two arguments:
"-global", "qxl.vram_size=%u".
> +
> + if (def->videos[0]->heads > 0) {
> + for (i = 0; i < def->videos[0]->heads - 1; i++) {
> + virCommandAddArgFormat(cmd, "-device %s,id=qxl-%d", vgastr, i+1);
Likewise. I'm preparing a patch (having just hit the issue when trying
to start a guest with a qxl graphics device).
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110311/62989f1c/attachment-0001.sig>
More information about the libvir-list
mailing list