]> xenbits.xensource.com Git - libvirt.git/commit
qemu: use newer -device video device in qemu commandline
authorGuannan Ren <gren@redhat.com>
Fri, 14 Dec 2012 07:08:01 +0000 (15:08 +0800)
committerGuannan Ren <gren@redhat.com>
Mon, 17 Dec 2012 06:02:50 +0000 (14:02 +0800)
commitaa51202b723ac6a2b7b99827abf60a7593afcba6
treec344e27ad4083d73734f18bb8ffa0df7e7bd71ee
parent09938bb3b0f2b2735f30b515d3d6819095612e73
qemu: use newer -device video device in qemu commandline

'-device VGA' maps to '-vga std'
'-device cirrus-vga' maps to '-vga cirrus'
'-device qxl-vga' maps to '-vga qxl'
             (there is also '-device qxl' for secondary devices)
'-device vmware-svga' maps to '-vga vmware'

For qemu(>=1.2), we can use -device to replace -vga for video
device. For the primary video device, the patch tries to use 0x2
slot for matching old qemu. If the 0x2 slot is allocated already,
the addr property could help for using any available slot.
For qemu(< 1.2), we keep using -vga for primary device.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
tests/qemuxml2argvtest.c