Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Thu, 20 Dec 2018, Gerd Hoffmann wrote: On Wed, Dec 19, 2018 at 07:11:34PM +0100, BALATON Zoltan wrote: On Wed, 19 Dec 2018, Daniel P. Berrangé wrote: On Tue, Dec 18, 2018 at 08:05:59PM +0100, BALATON Zoltan wrote: On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: I don't see any difference depending on whether I use Ctrl-Alt-3 before or after the yellow screen - both work as expected. The fact that you see a difference though does suggest that there's something odd being done in the ppc emulation that is in turn doing something bad to SDLs rendering with your graphics setup. I don't know what it could be though. OK thanks for checking this, at least it seems this is something that not reproduces elsewhere so it's probably something specific to my setup. I may try to debug this further when I'll have time. I think there's a good chance that this is still a bug in QEMU, so definitely still worth trying to debug what in your setup triggers it. Looks like Howard (cc'd) also has similar issue on Fedora 29 with NVidia vendor driver although newer version than mine so the proprietary NVidia driver seems to be a common point here. The difference is that for him the monitor window seems to hijack the guest screen not the serial screen like for me but this could be the same bug. I can't easily test with nouveau driver now so that's all we could find out so far. Also having some output on serial window seems to be relevant as this works before client starts if I start with qemu-system-ppc -S but breaks after continue in monitor window. qemu-system-x86_64 also does not show the problem but maybe because there's no content in serial window there? qemu-system-x86_64 -machine graphics=off will make seabios print stuff to the serial line. And with that it also shows the same problem so looks like this happens when something is output to serial and maybe with the NVidia vendor drivers on SDL2. I can't debug this more at the moment. Regards, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Wed, Dec 19, 2018 at 07:11:34PM +0100, BALATON Zoltan wrote: > On Wed, 19 Dec 2018, Daniel P. Berrangé wrote: > > On Tue, Dec 18, 2018 at 08:05:59PM +0100, BALATON Zoltan wrote: > > > On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: > > > > I don't see any difference depending on whether I use Ctrl-Alt-3 before > > > > or after the yellow screen - both work as expected. The fact that you > > > > see a difference though does suggest that there's something odd being > > > > done in the ppc emulation that is in turn doing something bad to SDLs > > > > rendering with your graphics setup. I don't know what it could be > > > > though. > > > > > > OK thanks for checking this, at least it seems this is something that not > > > reproduces elsewhere so it's probably something specific to my setup. I > > > may > > > try to debug this further when I'll have time. > > > > I think there's a good chance that this is still a bug in QEMU, so > > definitely still worth trying to debug what in your setup triggers > > it. > > Looks like Howard (cc'd) also has similar issue on Fedora 29 with NVidia > vendor driver although newer version than mine so the proprietary NVidia > driver seems to be a common point here. The difference is that for him the > monitor window seems to hijack the guest screen not the serial screen like > for me but this could be the same bug. I can't easily test with nouveau > driver now so that's all we could find out so far. Also having some output > on serial window seems to be relevant as this works before client starts if > I start with qemu-system-ppc -S but breaks after continue in monitor window. > qemu-system-x86_64 also does not show the problem but maybe because there's > no content in serial window there? qemu-system-x86_64 -machine graphics=off will make seabios print stuff to the serial line. cheers, Gerd
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Wed, 19 Dec 2018, Daniel P. Berrangé wrote: On Tue, Dec 18, 2018 at 08:05:59PM +0100, BALATON Zoltan wrote: On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: I don't see any difference depending on whether I use Ctrl-Alt-3 before or after the yellow screen - both work as expected. The fact that you see a difference though does suggest that there's something odd being done in the ppc emulation that is in turn doing something bad to SDLs rendering with your graphics setup. I don't know what it could be though. OK thanks for checking this, at least it seems this is something that not reproduces elsewhere so it's probably something specific to my setup. I may try to debug this further when I'll have time. I think there's a good chance that this is still a bug in QEMU, so definitely still worth trying to debug what in your setup triggers it. Looks like Howard (cc'd) also has similar issue on Fedora 29 with NVidia vendor driver although newer version than mine so the proprietary NVidia driver seems to be a common point here. The difference is that for him the monitor window seems to hijack the guest screen not the serial screen like for me but this could be the same bug. I can't easily test with nouveau driver now so that's all we could find out so far. Also having some output on serial window seems to be relevant as this works before client starts if I start with qemu-system-ppc -S but breaks after continue in monitor window. qemu-system-x86_64 also does not show the problem but maybe because there's no content in serial window there? Regards, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, Dec 18, 2018 at 08:05:59PM +0100, BALATON Zoltan wrote: > On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: > > I don't see any difference depending on whether I use Ctrl-Alt-3 before > > or after the yellow screen - both work as expected. The fact that you > > see a difference though does suggest that there's something odd being > > done in the ppc emulation that is in turn doing something bad to SDLs > > rendering with your graphics setup. I don't know what it could be though. > > OK thanks for checking this, at least it seems this is something that not > reproduces elsewhere so it's probably something specific to my setup. I may > try to debug this further when I'll have time. I think there's a good chance that this is still a bug in QEMU, so definitely still worth trying to debug what in your setup triggers it. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: I don't see any difference depending on whether I use Ctrl-Alt-3 before or after the yellow screen - both work as expected. The fact that you see a difference though does suggest that there's something odd being done in the ppc emulation that is in turn doing something bad to SDLs rendering with your graphics setup. I don't know what it could be though. OK thanks for checking this, at least it seems this is something that not reproduces elsewhere so it's probably something specific to my setup. I may try to debug this further when I'll have time. Regards, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: On Tue, Dec 18, 2018 at 10:54:06AM +, Mark Cave-Ayland wrote: On 17/12/2018 14:56, BALATON Zoltan wrote: I still have this problem after updating everything on my machine, latest QEMU and SDL 2.0.9 so it's not likely to be a bug in some external component. If I just start qemu-system-ppc (compiled with --disable-gtk) and try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial output window contents flash in this window. At the same time the window that opens for Ctrl-Alt-3 which should have the serial output is empty. It looks like an index may be off somewhere or window contents are not associated with the right window but I have no idea where to look for it. Can you reproduce it now and do you have any idea what could cause this? Are you using Fedora Core 29 at all? I know Howard has been experiencing redraw issues since upgrading from FC 28 to FC 29. A couple of other things to check: There is no "Fedora Core" since Fedora Core 6, just Fedora :-P But seriously, I teted on Fedora 29 and didn't see any problem, so there must be some more specific scenario that is hurting it. 1) Does QEMU 3.0 work correctly? If so, a bisection would help. 2) Are you using an Nvidia graphics card with the nouveau driver? This second point is a good idea to consider. How is graphics card relevant for this? I do use NVidia but not nouveau but vendor drivers (version 390.87) on Mageia 6 (which is a bit like Fedora but may have differences). I have this problem for a while so I don't think it's a recent regression. It only seems to affect qemu-system-ppc, qemu-system-x86_64 does open serial console all right but could be I was using different configure options for these. With qemu-system-ppc when I press Ctrl-Alt-3 an empty window opens and the content that should be in this window appears in the monitor window that opens for Ctrl-Alt-2 but behind the normal monitor output, only visible when I type in that window. My configure options are: ./configure --disable-gtk --disable-tpm \ --audio-drv-list=alsa \ --target-list=ppc-softmmu \ --disable-libssh2 --disable-libusb --disable-guest-agent \ --enable-debug Parallel console for Ctrl-Alt-4 seems to work all right but that has no content. I'm not sure if it's relevant to have output in the serial window. For qemu-system-ppc OpenBIOS has some serial output. Now that I've tried it does seem to be relevant: if I press Ctrl-Alt-3 right after QEMU starts when the main screen still says "guest has not initialised" then it works but if I wait until OpenBIOS starts with yellow screen (and some output on serial) and then press Ctrl-Alt-3 then empty window opens so maybe it's related to have some content on serial when window first opens? Regards, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, Dec 18, 2018 at 02:11:35PM +0100, BALATON Zoltan wrote: > On Tue, 18 Dec 2018, Daniel P. Berrangé wrote: > > On Tue, Dec 18, 2018 at 10:54:06AM +, Mark Cave-Ayland wrote: > > > On 17/12/2018 14:56, BALATON Zoltan wrote: > > > > > > > I still have this problem after updating everything on my machine, > > > > latest QEMU and > > > > SDL 2.0.9 so it's not likely to be a bug in some external component. If > > > > I just start > > > > qemu-system-ppc (compiled with --disable-gtk) and try to open monitor > > > > console with > > > > Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial > > > > output window > > > > contents flash in this window. At the same time the window that opens > > > > for Ctrl-Alt-3 > > > > which should have the serial output is empty. It looks like an index > > > > may be off > > > > somewhere or window contents are not associated with the right window > > > > but I have no > > > > idea where to look for it. Can you reproduce it now and do you have any > > > > idea what > > > > could cause this? > > > > > > Are you using Fedora Core 29 at all? I know Howard has been experiencing > > > redraw > > > issues since upgrading from FC 28 to FC 29. A couple of other things to > > > check: > > > > There is no "Fedora Core" since Fedora Core 6, just Fedora :-P > > > > But seriously, I teted on Fedora 29 and didn't see any problem, so there > > must be some more specific scenario that is hurting it. > > > > > 1) Does QEMU 3.0 work correctly? If so, a bisection would help. > > > 2) Are you using an Nvidia graphics card with the nouveau driver? > > > > This second point is a good idea to consider. > > How is graphics card relevant for this? I do use NVidia but not nouveau but > vendor drivers (version 390.87) on Mageia 6 (which is a bit like Fedora but > may have differences). I have this problem for a while so I don't think it's > a recent regression. It only seems to affect qemu-system-ppc, > qemu-system-x86_64 does open serial console all right but could be I was > using different configure options for these. Well SDL has to render stuff to the screen and that involves the graphics card drivers. It is not uncommon to have rendering problems that only affect certain vendor drivers. It might be something todo with the PPC emulation that is tickling different code paths than x86, and that in turn touches some undefined behaviour in SDL and/or the graphics driver. So it would be relevant to test if you get the same behaviour when using the nouveau drivers instead of nvidia vendor drivers. > Parallel console for Ctrl-Alt-4 seems to work all right but that has no > content. I'm not sure if it's relevant to have output in the serial window. > For qemu-system-ppc OpenBIOS has some serial output. Now that I've tried it > does seem to be relevant: if I press Ctrl-Alt-3 right after QEMU starts when > the main screen still says "guest has not initialised" then it works but if > I wait until OpenBIOS starts with yellow screen (and some output on serial) > and then press Ctrl-Alt-3 then empty window opens so maybe it's related to > have some content on serial when window first opens? I don't see any difference depending on whether I use Ctrl-Alt-3 before or after the yellow screen - both work as expected. The fact that you see a difference though does suggest that there's something odd being done in the ppc emulation that is in turn doing something bad to SDLs rendering with your graphics setup. I don't know what it could be though. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, Dec 18, 2018 at 10:54:06AM +, Mark Cave-Ayland wrote: > On 17/12/2018 14:56, BALATON Zoltan wrote: > > > I still have this problem after updating everything on my machine, latest > > QEMU and > > SDL 2.0.9 so it's not likely to be a bug in some external component. If I > > just start > > qemu-system-ppc (compiled with --disable-gtk) and try to open monitor > > console with > > Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial > > output window > > contents flash in this window. At the same time the window that opens for > > Ctrl-Alt-3 > > which should have the serial output is empty. It looks like an index may be > > off > > somewhere or window contents are not associated with the right window but I > > have no > > idea where to look for it. Can you reproduce it now and do you have any > > idea what > > could cause this? > > Are you using Fedora Core 29 at all? I know Howard has been experiencing > redraw > issues since upgrading from FC 28 to FC 29. A couple of other things to check: There is no "Fedora Core" since Fedora Core 6, just Fedora :-P But seriously, I teted on Fedora 29 and didn't see any problem, so there must be some more specific scenario that is hurting it. > 1) Does QEMU 3.0 work correctly? If so, a bisection would help. > 2) Are you using an Nvidia graphics card with the nouveau driver? This second point is a good idea to consider. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Mon, Dec 17, 2018 at 10:57:14PM +0100, BALATON Zoltan wrote: > On Mon, 17 Dec 2018, Daniel P. Berrangé wrote: > > On Mon, Dec 17, 2018 at 03:56:49PM +0100, BALATON Zoltan wrote: > > > On Wed, 21 Mar 2018, BALATON Zoltan wrote: > > > > On Wed, 21 Mar 2018, Gerd Hoffmann wrote: > > > > > > while the serial output seems to be behind the monitor output in > > > > > > the window > > > > > > opening with Ctrl+Alt+2 and flashes when I type in this window. > > > > > > (This > > > > > > doesn't seem to happen with qemu-system-x86_64, maybe that's why > > > > > > it was not catched.) > > > > > > > > > > Doesn't reproduce too. It's also not clear why x86_64 should behave > > > > > different that ppc. There is no arch-specific code ui/, so there > > > > > should > > > > > be no difference, exept for hardware like paralle ports which are not > > > > > supported by all machine types. > > > > > > > > > > Any chance you have tested an old ppc binary? > > > > > > > > Not likely because I did make distclean and a clean build before testing > > > > to avoid any possible mismatch. It still does not work for me though. > > > > While > > > > > > I still have this problem after updating everything on my machine, latest > > > QEMU and SDL 2.0.9 so it's not likely to be a bug in some external > > > component. If I just start qemu-system-ppc (compiled with --disable-gtk) > > > and > > > try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I > > > type in this window the serial output window contents flash in this > > > window. > > > At the same time the window that opens for Ctrl-Alt-3 which should have > > > the > > > serial output is empty. It looks like an index may be off somewhere or > > > window contents are not associated with the right window but I have no > > > idea > > > where to look for it. Can you reproduce it now and do you have any idea > > > what > > > could cause this? > > > > Could you share an example command line which can be used to reproduce > > the problem. > > As I wrote above ust "qemu-system-ppc" without any options reproduces the > problem here. I don't have any luck reproducing the behaviour you describe. Built todays git master with ./configure --target-list=x86_64-softmmu,ppc-softmmu --disable-gtk then ./ppc-softmmu/qemu-system-ppc -sdl pops up the main SDL window with primary VGA showing firmware output. I can then Ctrl-Alt-2 to popup monitor console, and Ctrl-Alt-3/4 to popup serial & parallel console. The serial console has some input in it, and the monitor console responds normally without affecting any other windows. Can you provide further information about your host architecture, and your host OS distro, and whether you gave any other special options to configure or qemu-system-ppc The only annoyance is that the serial & parallel console windows get placed directly on top of the monitor console window instead of letting the window manager place them in a sensible place. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On 17/12/2018 14:56, BALATON Zoltan wrote: > I still have this problem after updating everything on my machine, latest > QEMU and > SDL 2.0.9 so it's not likely to be a bug in some external component. If I > just start > qemu-system-ppc (compiled with --disable-gtk) and try to open monitor console > with > Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial > output window > contents flash in this window. At the same time the window that opens for > Ctrl-Alt-3 > which should have the serial output is empty. It looks like an index may be > off > somewhere or window contents are not associated with the right window but I > have no > idea where to look for it. Can you reproduce it now and do you have any idea > what > could cause this? Are you using Fedora Core 29 at all? I know Howard has been experiencing redraw issues since upgrading from FC 28 to FC 29. A couple of other things to check: 1) Does QEMU 3.0 work correctly? If so, a bisection would help. 2) Are you using an Nvidia graphics card with the nouveau driver? ATB, Mark.
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
Hi, > > > > > Doesn't reproduce too. It's also not clear why x86_64 should behave > > > > > different that ppc. There is no arch-specific code ui/, so there > > > > > should > > > > > be no difference, exept for hardware like paralle ports which are not > > > > > supported by all machine types. > > > > > > > > > > Any chance you have tested an old ppc binary? > > > > > > > > Not likely because I did make distclean and a clean build before testing > > > > to avoid any possible mismatch. It still does not work for me though. > > > > While > > > > > > I still have this problem after updating everything on my machine, latest > > > QEMU and SDL 2.0.9 so it's not likely to be a bug in some external > > > component. If I just start qemu-system-ppc (compiled with --disable-gtk) > > > and > > > try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I > > > type in this window the serial output window contents flash in this > > > window. > > > At the same time the window that opens for Ctrl-Alt-3 which should have > > > the > > > serial output is empty. It looks like an index may be off somewhere or > > > window contents are not associated with the right window but I have no > > > idea > > > where to look for it. Can you reproduce it now and do you have any idea > > > what > > > could cause this? > > > > Could you share an example command line which can be used to reproduce > > the problem. > > As I wrote above ust "qemu-system-ppc" without any options reproduces the > problem here. Still doesn't reproduce, using "qemu-system-ppc -display sdl". x86_64 is fine too. Also using SDL 2.0.9. "struct sdl2_console" holds the per-window state, you could try to sprinkle some debug printfs (or add trace points) to sdl2_window_create, sdl2_redraw, ... HTH, Gerd
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Mon, 17 Dec 2018, Daniel P. Berrangé wrote: On Mon, Dec 17, 2018 at 03:56:49PM +0100, BALATON Zoltan wrote: On Wed, 21 Mar 2018, BALATON Zoltan wrote: On Wed, 21 Mar 2018, Gerd Hoffmann wrote: while the serial output seems to be behind the monitor output in the window opening with Ctrl+Alt+2 and flashes when I type in this window. (This doesn't seem to happen with qemu-system-x86_64, maybe that's why it was not catched.) Doesn't reproduce too. It's also not clear why x86_64 should behave different that ppc. There is no arch-specific code ui/, so there should be no difference, exept for hardware like paralle ports which are not supported by all machine types. Any chance you have tested an old ppc binary? Not likely because I did make distclean and a clean build before testing to avoid any possible mismatch. It still does not work for me though. While I still have this problem after updating everything on my machine, latest QEMU and SDL 2.0.9 so it's not likely to be a bug in some external component. If I just start qemu-system-ppc (compiled with --disable-gtk) and try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial output window contents flash in this window. At the same time the window that opens for Ctrl-Alt-3 which should have the serial output is empty. It looks like an index may be off somewhere or window contents are not associated with the right window but I have no idea where to look for it. Can you reproduce it now and do you have any idea what could cause this? Could you share an example command line which can be used to reproduce the problem. As I wrote above ust "qemu-system-ppc" without any options reproduces the problem here. Regards, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Mon, Dec 17, 2018 at 03:56:49PM +0100, BALATON Zoltan wrote: > On Wed, 21 Mar 2018, BALATON Zoltan wrote: > > On Wed, 21 Mar 2018, Gerd Hoffmann wrote: > > > > while the serial output seems to be behind the monitor output in the > > > > window > > > > opening with Ctrl+Alt+2 and flashes when I type in this window. (This > > > > doesn't seem to happen with qemu-system-x86_64, maybe that's why > > > > it was not catched.) > > > > > > Doesn't reproduce too. It's also not clear why x86_64 should behave > > > different that ppc. There is no arch-specific code ui/, so there should > > > be no difference, exept for hardware like paralle ports which are not > > > supported by all machine types. > > > > > > Any chance you have tested an old ppc binary? > > > > Not likely because I did make distclean and a clean build before testing > > to avoid any possible mismatch. It still does not work for me though. > > While > > I still have this problem after updating everything on my machine, latest > QEMU and SDL 2.0.9 so it's not likely to be a bug in some external > component. If I just start qemu-system-ppc (compiled with --disable-gtk) and > try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I > type in this window the serial output window contents flash in this window. > At the same time the window that opens for Ctrl-Alt-3 which should have the > serial output is empty. It looks like an index may be off somewhere or > window contents are not associated with the right window but I have no idea > where to look for it. Can you reproduce it now and do you have any idea what > could cause this? Could you share an example command line which can be used to reproduce the problem. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Wed, 21 Mar 2018, BALATON Zoltan wrote: On Wed, 21 Mar 2018, Gerd Hoffmann wrote: while the serial output seems to be behind the monitor output in the window opening with Ctrl+Alt+2 and flashes when I type in this window. (This doesn't seem to happen with qemu-system-x86_64, maybe that's why it was not catched.) Doesn't reproduce too. It's also not clear why x86_64 should behave different that ppc. There is no arch-specific code ui/, so there should be no difference, exept for hardware like paralle ports which are not supported by all machine types. Any chance you have tested an old ppc binary? Not likely because I did make distclean and a clean build before testing to avoid any possible mismatch. It still does not work for me though. While I still have this problem after updating everything on my machine, latest QEMU and SDL 2.0.9 so it's not likely to be a bug in some external component. If I just start qemu-system-ppc (compiled with --disable-gtk) and try to open monitor console with Ctrl-Alt-2 I see QEMU monitor but when I type in this window the serial output window contents flash in this window. At the same time the window that opens for Ctrl-Alt-3 which should have the serial output is empty. It looks like an index may be off somewhere or window contents are not associated with the right window but I have no idea where to look for it. Can you reproduce it now and do you have any idea what could cause this? Thank you, BALATON Zoltan
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
Hello, On Wed, 21 Mar 2018, Gerd Hoffmann wrote: On Tue, Mar 20, 2018 at 11:43:08PM +0100, BALATON Zoltan wrote: 1. Scrollback does not work. With SDL1.2 it is possible to scroll the monitor (and maybe other output windows as well, I'm not sure about that) with Ctrl+PgUp/PgDn but this does not work with SDL2. Without this the small monitor window is not really usable. Fixed (patches on the list). Thanks, this seems to work: Tested-by: BALATON Zoltan2. With at least qemu-system-ppc the serial and parallel output are not accessible (Ctrl+Alt+3 opens an empty window and Ctrl+Alt+4 does nothing) Doesn't reproduce. Ctrl-Alt-3 open serial for me, which shows some openbios output. Ctrl-Alt-4 shows parallel. powermac (default machine type). Tried ppc64 too. pseries (also default machine type). Seems there is no parallel port. Serial works fine though (shows SLOF output). while the serial output seems to be behind the monitor output in the window opening with Ctrl+Alt+2 and flashes when I type in this window. (This doesn't seem to happen with qemu-system-x86_64, maybe that's why it was not catched.) Doesn't reproduce too. It's also not clear why x86_64 should behave different that ppc. There is no arch-specific code ui/, so there should be no difference, exept for hardware like paralle ports which are not supported by all machine types. Any chance you have tested an old ppc binary? Not likely because I did make distclean and a clean build before testing to avoid any possible mismatch. It still does not work for me though. While trying to reproduce it now with qemu-system-i386 I got this segfault just by pressing Ctrl+Alt+[234] a few times: Program received signal SIGSEGV, Segmentation fault. 0x55c1da56 in handle_keydown (ev=0x7fffdc70) at ui/sdl2.c:335 335 if (!scon->ignore_hotkeys && gui_key_modifier_pressed && !ev->key.repeat) { (gdb) bt #0 0x55c1da56 in handle_keydown (ev=0x7fffdc70) at ui/sdl2.c:335 #1 0x55c1e3ae in sdl2_poll_events (scon=0x58114730) at ui/sdl2.c:605 #2 0x55c1f280 in sdl2_2d_refresh (dcl=0x58114730) at ui/sdl2-2d.c:129 #3 0x55bf2154 in dpy_refresh (s=0x57734850) at ui/console.c:1629 #4 0x55bee45b in gui_update (opaque=0x57734850) at ui/console.c:203 #5 0x55d4c4b3 in timerlist_run_timers (timer_list=0x56c06ad0) at util/qemu-timer.c:536 #6 0x55d4c4fb in qemu_clock_run_timers (type=QEMU_CLOCK_REALTIME) at util/qemu-timer.c:547 #7 0x55d4c90b in qemu_clock_run_all_timers () at util/qemu-timer.c:674 #8 0x55d4d0b2 in main_loop_wait (nonblocking=0) at util/main-loop.c:528 #9 0x5599af8a in main_loop () at vl.c:1943 #10 0x559a2bc2 in main (argc=1, argv=0x7fffe148, envp=0x7fffe158) at vl.c:4729 (gdb) p scon $1 = (struct sdl2_console *) 0x0 (gdb) p *ev $3 = {type = 768, common = {type = 768, timestamp = 10771}, window = { type = 768, timestamp = 10771, windowID = 0, event = 1 '\001', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', data1 = 224, data2 = 1073742048}, key = {type = 768, timestamp = 10771, windowID = 0, state = 1 '\001', repeat = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', keysym = {scancode = SDL_SCANCODE_LCTRL, sym = 1073742048, mod = 0, unused = 0}}, edit = {type = 768, timestamp = 10771, windowID = 0, text = "\001\000\000\000\340\000\000\000\340\000\000@", '\000' , start = 0, length = 16}, text = {type = 768, timestamp = 10771, windowID = 0, text = "\001\000\000\000\340\000\000\000\340\000\000@", '\000' }, motion = {type = 768, timestamp = 10771, windowID = 0, which = 1, state = 224, x = 1073742048, y = 0, xrel = 0, yrel = 0}, button = { type = 768, timestamp = 10771, windowID = 0, which = 1, button = 224 '\340', state = 0 '\000', clicks = 0 '\000', padding1 = 0 '\000', x = 1073742048, y = 0}, wheel = {type = 768, timestamp = 10771, windowID = 0, which = 1, x = 224, y = 1073742048}, jaxis = {type = 768, timestamp = 10771, which = 0, axis = 1 '\001', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 224, padding4 = 0}, jball = {type = 768, timestamp = 10771, which = 0, ball = 1 '\001', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', xrel = 224, yrel = 0}, jhat = {type = 768, timestamp = 10771, which = 0, hat = 1 '\001', value = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jbutton = {type = 768, timestamp = 10771, which = 0, button = 1 '\001', state = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jdevice = {type = 768, timestamp = 10771, which = 0}, caxis = {type = 768, timestamp = 10771, which = 0, axis = 1 '\001', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 224, padding4 = 0}, cbutton = {type = 768, timestamp = 10771, which = 0, button = 1
Re: [Qemu-devel] Monitor and serial output window broken with SDL2
On Tue, Mar 20, 2018 at 11:43:08PM +0100, BALATON Zoltan wrote: > Hello, > > With SDL2 the monitor and serial output windows behave differently than they > used to with SDL1.2 in that they are opening in separate windows. This is an > unexpected change we've discussed before but other than this there are > actual bugs with SDL2: > > 1. Scrollback does not work. With SDL1.2 it is possible to scroll the > monitor (and maybe other output windows as well, I'm not sure about that) > with Ctrl+PgUp/PgDn but this does not work with SDL2. Without this the small > monitor window is not really usable. Fixed (patches on the list). > 2. With at least qemu-system-ppc the serial and parallel output are not > accessible (Ctrl+Alt+3 opens an empty window and Ctrl+Alt+4 does nothing) Doesn't reproduce. Ctrl-Alt-3 open serial for me, which shows some openbios output. Ctrl-Alt-4 shows parallel. powermac (default machine type). Tried ppc64 too. pseries (also default machine type). Seems there is no parallel port. Serial works fine though (shows SLOF output). > while the serial output seems to be behind the monitor output in the window > opening with Ctrl+Alt+2 and flashes when I type in this window. (This > doesn't seem to happen with qemu-system-x86_64, maybe that's why it was not > catched.) Doesn't reproduce too. It's also not clear why x86_64 should behave different that ppc. There is no arch-specific code ui/, so there should be no difference, exept for hardware like paralle ports which are not supported by all machine types. Any chance you have tested an old ppc binary? > Could these be fixed please to make SDL2 a viable alternative before > deprecating SDL1.2? SDL-1.2 will stay deprecated. Actually dropping SDL-1.2 support will possibly be delayed though, depending on SDL2 state. SDL2 in 2.12 should already be alot better than in 2.11. Switching the default appearently causes many people try SDL2 and report issues, we have quite a number of bugs fixed in response to these reports. cheers, Gerd
[Qemu-devel] Monitor and serial output window broken with SDL2
Hello, With SDL2 the monitor and serial output windows behave differently than they used to with SDL1.2 in that they are opening in separate windows. This is an unexpected change we've discussed before but other than this there are actual bugs with SDL2: 1. Scrollback does not work. With SDL1.2 it is possible to scroll the monitor (and maybe other output windows as well, I'm not sure about that) with Ctrl+PgUp/PgDn but this does not work with SDL2. Without this the small monitor window is not really usable. 2. With at least qemu-system-ppc the serial and parallel output are not accessible (Ctrl+Alt+3 opens an empty window and Ctrl+Alt+4 does nothing) while the serial output seems to be behind the monitor output in the window opening with Ctrl+Alt+2 and flashes when I type in this window. (This doesn't seem to happen with qemu-system-x86_64, maybe that's why it was not catched.) Could these be fixed please to make SDL2 a viable alternative before deprecating SDL1.2? Thank you, BALATON Zoltan