This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] HVM domU with sdl not scheduled after vt-switch

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] HVM domU with sdl not scheduled after vt-switch
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Date: Mon, 2 May 2011 08:59:10 +0200
Cc: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Delivery-date: Mon, 02 May 2011 00:00:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1304319553; x=1335855553; h=from:to:subject:date:cc:references:in-reply-to: mime-version:content-transfer-encoding:message-id; bh=lXActjiXcnVhF5DMUOOCQVVySE1vzh5uC74tQdMyycE=; b=nfcHSwAz/gQa/xK0Jl03k1eaPHhcviYHnJQbNj+z30GTxfU/s6JGTQTg UqKzyCqHKtZJ3vsUeLhFp6751Mo7e7Z8NE0neBv1uIwkdAT8CHMGjPRml 2g8mSV/HpWSRx8moxR5bCNWLtozZkThlnnoBajnYR3wF067lLWpuKASCm fxPr5zXvdPSnoLox70xAS0ZDv3uNIq7QKED1S1wn53vIhwF6FvoGg3oHK kQq2xOBk2cdRWvRZ8+f27gQSNUZ/f;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: References:In-Reply-To:X-KMail-Markup:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id; b=js1Z0p6d4xZA2/M3s2OxDtbwmHdFXXormW0Sp6PfvYunxPeapknlqkDr 37Iteyn9agav/XMRyVm+xriSOwAA1+6VN6wW54RvGdK5QrfxXP9g0Nwbp m3MfOKmim1pd9Q+Fj44e1yHEJZpPC1BgmXzWQQcbzc34uKcc1UjOkrMDF hqkM1wp4plEKMunRerormIlBk0hX+qOoqj6z2CDtHokShQ5LdB9iHrgO5 eq+crmwzDMsb5davHoHNUONuMd0bc;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201104281056.57270.dietmar.hahn@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201104271327.10734.dietmar.hahn@xxxxxxxxxxxxxx> <4DB81BA7.2040501@xxxxxxxxxxxxx> <201104281056.57270.dietmar.hahn@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.6 (Linux/; KDE/4.6.0; x86_64; ; )

Am 28.04.2011 schrieb "Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>":

> Am 27.04.2011 schrieb "Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>":

> > On 04/27/2011 12:27 PM, Dietmar Hahn wrote:

> > >

> > > The domU gets scheduled again after switching back to the virtual screen.

> > >

> > > This is not the case when using vnc.

> > >

> > > What is the cause and where in the source can I find the implementation?

> > >

> > > Thanks!

> > >

> > That's a known problem of SDL generally, it's not linked to qemu itself

> > (i've seen the same behavior happened on other program using SDL). You

> > probably want to look at the SDL source for the reason why.


> Great, I will have a look at this.

It hangs in qemu in gui_update() -> dpy_refresh() -> sdl_refresh()

Via libSDL, libX11, libxcb the function xcb_wait_for_reply() gets called.

It never gets an answer from the Xserver, because the Xserver doesn't answer

any requests when switching the vt-console.

Because gui_update() gets called via a qemu timer and never return it stops qemu.

I tried to move the qui_update() into an own thread to get the main qemu loop

running but then the first call of sdl_update() leads to:

X Error of failed request: BadAccess (attempt to access private resource denied)

Major opcode of failed request: 154 (GLX)

Minor opcode of failed request: 26 (X_GLXMakeContextCurrent)

Serial number of failed request: 31

Current serial number in output stream: 31

and qemu exits.

I googled a little bit and found XInitThreads() but this doesn't help.

Any hints are welcome ;-) !



Company details: http://ts.fujitsu.com/imprint.html

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>