HVM domU with sdl not scheduled after vt-switch
Hi,
I tried a Windows domU with sdl switched on and when I switch in dom0 to another virtual console (the ctrl-alt-f? thing) the Windows domU loses its cpu.
# xm list Name ID Mem VCPUs State Time(s) myWindows 6 1024 1 ------ 73.5
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!
Dietmar.
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hmm, I bet qemu has crashed -- do a "ps ax | grep qemu" and see if it's still running.
If you're keen, you could run gdb on the core file and see where it's crashing. If there's no corefile, do probably need to do "ulimit -c unlimited" first.
-George
Quoted 33 lines · Dietmar Hahn
Hi,
I tried a Windows domU with sdl switched on and when I switch in dom0 to
another virtual console (the ctrl-alt-f? thing) the Windows domU loses its cpu.
# xm listName ID Mem VCPUs State Time(s)
myWindows 6 1024 1 ------ 73.5
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!
Dietmar.
--
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Am 27.04.2011 schrieb "George Dunlap <[email protected]>":
Quoted 2 lines
Hmm, I bet qemu has crashed -- do a "ps ax | grep qemu" and see if it's still running.
Thanks for the hint but qemu is waiting on a select() call and does nothing when switched away from the virtual screen.
Dietmar.
Quoted 31 lines
If you're keen, you could run gdb on the core file and see where it's crashing. If there's no corefile, do probably need to do "ulimit -c unlimited" first.
-George
Quoted 23 lines · Dietmar Hahn
Hi,
I tried a Windows domU with sdl switched on and when I switch in dom0 to
another virtual console (the ctrl-alt-f? thing) the Windows domU loses its cpu.
# xm listName ID Mem VCPUs State Time(s)
myWindows 6 1024 1 ------ 73.5
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!
Dietmar.
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 9 lines · Dietmar Hahn
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.
Signature · 1 line
Vincent
Am 27.04.2011 schrieb "Vincent Hanquez <[email protected]>":
Quoted 6 lines · Dietmar Hahn
Quoted 5 lines
The domU gets scheduled again after switching back to the virtual screen.
This is not the case when using vnc.
Quoted 7 lines
Quoted 4 lines
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.
Thanks!
Dietmar.
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Am 28.04.2011 schrieb "Dietmar Hahn <[email protected]>":
Quoted 9 lines
Am 27.04.2011 schrieb "Vincent Hanquez <[email protected]>":
Quoted 8 lines · Dietmar Hahn
Quoted 7 lines
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?
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
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 ;-) !
Dietmar.
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 10 lines · Dietmar Hahn
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.
Which one is the SDL call that never returns exactly? SDL_UpdateRect?
Quoted 12 lines
I tried to move the
qui_update()into an own thread to get the main qemu looprunning 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
Quoted 8 lines
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 ;-) !
Honestly I don't think any of these solutions are good. It might be worth sending an email to the libsdl devel mailing list, asking about this problem.