qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ui/console: Display the 'none' backend in '-display help'
@ 2020-01-20 19:29 Philippe Mathieu-Daudé
  2020-01-20 19:47 ` Eric Blake
  2020-01-21  6:30 ` Gerd Hoffmann
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-01-20 19:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Thomas Huth, Philippe Mathieu-Daudé, Gerd Hoffmann

Commit c388f408b5 added the possibility to list the display
backends using '-display help'. Since the 'none' backend is
is not implemented as a DisplayChangeListenerOps, it is not
registered to the dpys[] array with qemu_display_register(),
and is not listed in the help output.

This might be confusing, as we list it in the man page:

  -display type
      Select type of display to use. This option is a replacement for
      the old style -sdl/-curses/... options. Valid values for type are

      none
          Do not display video output. The guest will still see an
          emulated graphics card, but its output will not be displayed
          to the QEMU user. This option differs from the -nographic
          option in that it only affects what is done with video
          output; -nographic also changes the destination of the serial
          and parallel port data.

Fix by manually listing the special 'none' backend in the help.

Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 ui/console.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/console.c b/ui/console.c
index 69339b028b..179901c35e 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -2338,6 +2338,7 @@ void qemu_display_help(void)
     int idx;
 
     printf("Available display backend types:\n");
+    printf("none\n");
     for (idx = DISPLAY_TYPE_NONE; idx < DISPLAY_TYPE__MAX; idx++) {
         if (!dpys[idx]) {
             ui_module_load_one(DisplayType_str(idx));
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ui/console: Display the 'none' backend in '-display help'
  2020-01-20 19:29 [PATCH] ui/console: Display the 'none' backend in '-display help' Philippe Mathieu-Daudé
@ 2020-01-20 19:47 ` Eric Blake
  2020-01-21  6:30 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2020-01-20 19:47 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: qemu-trivial, Thomas Huth, Gerd Hoffmann

On 1/20/20 1:29 PM, Philippe Mathieu-Daudé wrote:
> Commit c388f408b5 added the possibility to list the display
> backends using '-display help'. Since the 'none' backend is
> is not implemented as a DisplayChangeListenerOps, it is not
> registered to the dpys[] array with qemu_display_register(),
> and is not listed in the help output.
> 
> This might be confusing, as we list it in the man page:
> 
>    -display type
>        Select type of display to use. This option is a replacement for
>        the old style -sdl/-curses/... options. Valid values for type are
> 
>        none
>            Do not display video output. The guest will still see an
>            emulated graphics card, but its output will not be displayed
>            to the QEMU user. This option differs from the -nographic
>            option in that it only affects what is done with video
>            output; -nographic also changes the destination of the serial
>            and parallel port data.
> 
> Fix by manually listing the special 'none' backend in the help.
> 
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>   ui/console.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/ui/console.c b/ui/console.c
> index 69339b028b..179901c35e 100644
> --- a/ui/console.c
> +++ b/ui/console.c
> @@ -2338,6 +2338,7 @@ void qemu_display_help(void)
>       int idx;
>   
>       printf("Available display backend types:\n");
> +    printf("none\n");
>       for (idx = DISPLAY_TYPE_NONE; idx < DISPLAY_TYPE__MAX; idx++) {
>           if (!dpys[idx]) {
>               ui_module_load_one(DisplayType_str(idx));
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ui/console: Display the 'none' backend in '-display help'
  2020-01-20 19:29 [PATCH] ui/console: Display the 'none' backend in '-display help' Philippe Mathieu-Daudé
  2020-01-20 19:47 ` Eric Blake
@ 2020-01-21  6:30 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2020-01-21  6:30 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: qemu-trivial, Thomas Huth, qemu-devel

On Mon, Jan 20, 2020 at 08:29:47PM +0100, Philippe Mathieu-Daudé wrote:
> Commit c388f408b5 added the possibility to list the display
> backends using '-display help'. Since the 'none' backend is
> is not implemented as a DisplayChangeListenerOps, it is not
> registered to the dpys[] array with qemu_display_register(),
> and is not listed in the help output.
> 
> This might be confusing, as we list it in the man page:
> 
>   -display type
>       Select type of display to use. This option is a replacement for
>       the old style -sdl/-curses/... options. Valid values for type are
> 
>       none
>           Do not display video output. The guest will still see an
>           emulated graphics card, but its output will not be displayed
>           to the QEMU user. This option differs from the -nographic
>           option in that it only affects what is done with video
>           output; -nographic also changes the destination of the serial
>           and parallel port data.
> 
> Fix by manually listing the special 'none' backend in the help.
> 
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Added to ui queue.

thanks,
  Gerd



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-21  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 19:29 [PATCH] ui/console: Display the 'none' backend in '-display help' Philippe Mathieu-Daudé
2020-01-20 19:47 ` Eric Blake
2020-01-21  6:30 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).