qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Adds null check for DisplayStatus
Date: Tue, 20 Jan 2009 16:36:48 +0000	[thread overview]
Message-ID: <4975FDA0.8070901@eu.citrix.com> (raw)
In-Reply-To: <4975F42B.7080904@redhat.com>

Gerd Hoffmann wrote:

> Stefano Stabellini wrote:
>> Allocate a DisplaySurface in dumb_display_init if none else does it.
>> The DisplaySurface will be used for the qemu monitor, serial and
>> parallel ports, etc.
> 
> Ah.  That one should fix the "-vga none -vnc :0" crashes, right?


Yes.

 
> Some more displaystate questions:
> 
> I'm sitting here with a initialization order issue I'm not sure how to
> tackle best.  xenfb calls graphics_console_init() once the frontend and
> backend finished the handshake, usually a few seconds after the guest
> started running.  In case the guest has no framebuffer frontend driver
> the graphics_console_init() call doesn't happen at all.  So it behaves
> like a hot-plugged graphics card.
> 
> With the new displaystate allocation rules and dumb_display_init() in
> place I will end up with *two* displaystates in case I keep the setup
> logic this way.  Is that going to work?  There is a new
> register_displaystate() which maintains a linked list of displaystates,
> so it looks like it might work?  Or is this work in progress?
> 
> What do you suggest to do?  What other patches do you have in the queue
> I maybe should know about when adapting xenfb?  Will the text consoles
> (monitor, serial line, ...) continue to hitchhike on the displaystate of
> the graphics display?
> 


The goal is to have each text console on a different displaystate, but I
don't have any patch to accomplish this at the moment.

In your case the problem happens when you have to call
graphics_console_init() after dumb_display_init(): currently two
DisplayState are not going to work properly (they could work if you
manually hook the new DisplayState to another Sdl on Vnc server but
certainly not on the same one).

There are many workarounds to this issue, none of them particularly
pretty. Probably the best thing you could do at the moment is calling
graphic_console_init() in any case in xenfb_new whether you are going to
use it or not (that is more or less the same thing that
dumb_display_init does).

  reply	other threads:[~2009-01-20 16:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-16 19:04 [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini) Anthony Liguori
2009-01-18 12:54 ` Shin-ichiro KAWASAKI
2009-01-18 14:37   ` Aurelien Jarno
2009-01-18 14:48   ` [PATCH] Adds null check for DisplayStatus (wasRe: " Shin-ichiro KAWASAKI
2009-01-19 11:39     ` Stefano Stabellini
2009-01-19 15:26       ` Shin-ichiro KAWASAKI
2009-01-19 15:31         ` Stefano Stabellini
2009-01-19 16:08           ` Anthony Liguori
2009-01-19 16:19             ` Stefano Stabellini
2009-01-19 19:07               ` Anthony Liguori
2009-01-20 10:53                 ` [Qemu-devel] [PATCH] Adds null check for DisplayStatus Stefano Stabellini
2009-01-20 15:56                   ` Gerd Hoffmann
2009-01-20 16:36                     ` Stefano Stabellini [this message]
2009-01-21 11:06                   ` [Qemu-devel] " Stefano Stabellini
2009-01-21 18:59                   ` [Qemu-devel] " Anthony Liguori
2009-01-19 16:34       ` [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini) Anthony Liguori
2009-02-09 11:38 ` Riku Voipio
2009-02-09 11:52   ` Stefano Stabellini
2009-02-09 17:00   ` Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4975FDA0.8070901@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).