[libvirt] [PATCH 31/34] Add support for explicit -sdl flag to QEMU

Daniel Veillard veillard at redhat.com
Fri Jan 15 20:00:36 UTC 2010


On Fri, Jan 08, 2010 at 05:23:27PM +0000, Daniel P. Berrange wrote:
> Not all QEMU builds default to SDL graphics for their display.
> Newer QEMU now has an explicit -sdl flag, which we can use to
> explicitly request SDL intead of relying on the default. This
> protects libvirt against unexpected changes in graphics default
> 

>      if (def->nvideos) {
> diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
> index 174d397..4a862d1 100644
> --- a/src/qemu/qemu_conf.h
> +++ b/src/qemu/qemu_conf.h
> @@ -79,6 +79,7 @@ enum qemud_cmd_flags {
>      QEMUD_CMD_FLAG_MONITOR_JSON  = (1 << 24), /* JSON mode for monitor */
>      QEMUD_CMD_FLAG_BALLOON       = (1 << 25), /* -balloon available */
>      QEMUD_CMD_FLAG_DEVICE        = (1 << 26), /* Is the new -chardev arg available */
> +    QEMUD_CMD_FLAG_SDL           = (1 << 27), /* Is the new -sdl arg available */
>  };

  Aren't we getting close to the 32 options limits ?


  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list