]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Reject SDL graphic if it's not supported by qemu
authorOsier Yang <jyang@redhat.com>
Wed, 12 Jan 2011 14:44:00 +0000 (22:44 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 12 Jan 2011 16:52:51 +0000 (09:52 -0700)
commit0444ce1b001dc6427e97959108a320dbe80e501b
tree1e554d0839a32ff23916cad4b578ef6090d3a5ff
parentc7f6d6fcc96f6ad0773175ad93c93089981615a0
qemu: Reject SDL graphic if it's not supported by qemu

If the emulator doesn't support SDL graphic, we should reject
the use of SDL graphic xml with error messages, but not ignore
it silently, and pretend things are fine.

"-sdl" flag was exposed explicitly by qemu since 0.10.0, more detail:
http://www.redhat.com/archives/libvir-list/2011-January/msg00442.html

And we already have capability flag "QEMUD_CMD_FLAG_0_10", which
could be used to prevent the patch affecting the older versions
of QEMU.

* src/qemu/qemu_command.c
src/qemu/qemu_command.c