All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Monitor and serial output window broken with SDL2
@ 2018-03-20 22:43 BALATON Zoltan
  2018-03-21 14:06 ` Gerd Hoffmann
  0 siblings, 1 reply; 17+ messages in thread
From: BALATON Zoltan @ 2018-03-20 22:43 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc; +Cc: Gerd Hoffmann

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-03-20 22:43 [Qemu-devel] Monitor and serial output window broken with SDL2 BALATON Zoltan
@ 2018-03-21 14:06 ` Gerd Hoffmann
  2018-03-21 17:25   ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: Gerd Hoffmann @ 2018-03-21 14:06 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: qemu-devel, qemu-ppc

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-03-21 14:06 ` Gerd Hoffmann
@ 2018-03-21 17:25   ` BALATON Zoltan
  2018-12-17 14:56     ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: BALATON Zoltan @ 2018-03-21 17:25 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, qemu-ppc

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 Zoltan <balaton@eik.bme.hu>

>> 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?

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.
0x0000555555c1da56 in handle_keydown (ev=0x7fffffffdc70) at ui/sdl2.c:335
335	    if (!scon->ignore_hotkeys && gui_key_modifier_pressed && !ev->key.repeat) {
(gdb) bt
#0  0x0000555555c1da56 in handle_keydown (ev=0x7fffffffdc70) at ui/sdl2.c:335
#1  0x0000555555c1e3ae in sdl2_poll_events (scon=0x555558114730)
     at ui/sdl2.c:605
#2  0x0000555555c1f280 in sdl2_2d_refresh (dcl=0x555558114730)
     at ui/sdl2-2d.c:129
#3  0x0000555555bf2154 in dpy_refresh (s=0x555557734850) at ui/console.c:1629
#4  0x0000555555bee45b in gui_update (opaque=0x555557734850)
     at ui/console.c:203
#5  0x0000555555d4c4b3 in timerlist_run_timers (timer_list=0x555556c06ad0)
     at util/qemu-timer.c:536
#6  0x0000555555d4c4fb in qemu_clock_run_timers (type=QEMU_CLOCK_REALTIME)
     at util/qemu-timer.c:547
#7  0x0000555555d4c90b in qemu_clock_run_all_timers () at util/qemu-timer.c:674
#8  0x0000555555d4d0b2 in main_loop_wait (nonblocking=0)
     at util/main-loop.c:528
#9  0x000055555599af8a in main_loop () at vl.c:1943
#10 0x00005555559a2bc2 in main (argc=1, argv=0x7fffffffe148,
     envp=0x7fffffffe158) 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' <repeats 19 times>,
     start = 0, length = 16}, text = {type = 768, timestamp = 10771,
     windowID = 0,
     text = "\001\000\000\000\340\000\000\000\340\000\000@", '\000' <repeats 19 times>},
     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 '\001', state = 0 '\000',
     padding1 = 0 '\000', padding2 = 0 '\000'}, cdevice = {type = 768,
     timestamp = 10771, which = 0}, quit = {type = 768, timestamp = 10771},
   user = {type = 768, timestamp = 10771, windowID = 0, code = 1,
     data1 = 0x400000e0000000e0, data2 = 0x0}, syswm = {type = 768,
     timestamp = 10771, msg = 0x100000000}, tfinger = {type = 768,
     timestamp = 10771, touchId = 4294967296, fingerId = 4611686980500062432,
     x = 0, y = 0, dx = 0, dy = 0, pressure = 0}, mgesture = {type = 768,
     timestamp = 10771, touchId = 4294967296, dTheta = 3.13890856e-43,
     dDist = 2.00005341, x = 0, y = 0, numFingers = 0, padding = 0},
   dgesture = {type = 768, timestamp = 10771, touchId = 4294967296,
     gestureId = 4611686980500062432, numFingers = 0, error = 0, x = 0, y = 0},
   drop = {type = 768, timestamp = 10771,
     file = 0x100000000 <error: Cannot access memory at address 0x100000000>},
   padding = 
"\000\003\000\000\023*\000\000\000\000\000\000\001\000\000\000\340\000\000\000\340\000\000@", 
'\000' <repeats 24 times>, "\020\000\000\000\000\000\000"}

Not sure if this is related to these patches, I haven't tried to bisect. 
Also my SDL2 version is a bit old, it's still 2.0.3 in case that matters 
but QEMU compiles with it so I also expect it to work at least as good as 
it used to with SDL1.2.

Regards,
BALATON Zoltan

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-03-21 17:25   ` BALATON Zoltan
@ 2018-12-17 14:56     ` BALATON Zoltan
  2018-12-17 15:00       ` Daniel P. Berrangé
  2018-12-18 10:54       ` Mark Cave-Ayland
  0 siblings, 2 replies; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-17 14:56 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-17 14:56     ` BALATON Zoltan
@ 2018-12-17 15:00       ` Daniel P. Berrangé
  2018-12-17 21:57         ` BALATON Zoltan
  2018-12-18 10:54       ` Mark Cave-Ayland
  1 sibling, 1 reply; 17+ messages in thread
From: Daniel P. Berrangé @ 2018-12-17 15:00 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Gerd Hoffmann, qemu-devel

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 :|

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-17 15:00       ` Daniel P. Berrangé
@ 2018-12-17 21:57         ` BALATON Zoltan
  2018-12-18  5:54           ` Gerd Hoffmann
  2018-12-18 10:58           ` Daniel P. Berrangé
  0 siblings, 2 replies; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-17 21:57 UTC (permalink / raw)
  To: Daniel P. Berrangé; +Cc: Gerd Hoffmann, qemu-devel

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-17 21:57         ` BALATON Zoltan
@ 2018-12-18  5:54           ` Gerd Hoffmann
  2018-12-18 10:58           ` Daniel P. Berrangé
  1 sibling, 0 replies; 17+ messages in thread
From: Gerd Hoffmann @ 2018-12-18  5:54 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Daniel P. Berrangé, qemu-devel

  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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-17 14:56     ` BALATON Zoltan
  2018-12-17 15:00       ` Daniel P. Berrangé
@ 2018-12-18 10:54       ` Mark Cave-Ayland
  2018-12-18 11:16         ` Daniel P. Berrangé
  1 sibling, 1 reply; 17+ messages in thread
From: Mark Cave-Ayland @ 2018-12-18 10:54 UTC (permalink / raw)
  To: BALATON Zoltan, Gerd Hoffmann; +Cc: qemu-devel

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.

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-17 21:57         ` BALATON Zoltan
  2018-12-18  5:54           ` Gerd Hoffmann
@ 2018-12-18 10:58           ` Daniel P. Berrangé
  1 sibling, 0 replies; 17+ messages in thread
From: Daniel P. Berrangé @ 2018-12-18 10:58 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Gerd Hoffmann, qemu-devel

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 :|

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-18 10:54       ` Mark Cave-Ayland
@ 2018-12-18 11:16         ` Daniel P. Berrangé
  2018-12-18 13:11           ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel P. Berrangé @ 2018-12-18 11:16 UTC (permalink / raw)
  To: Mark Cave-Ayland; +Cc: BALATON Zoltan, Gerd Hoffmann, qemu-devel

On Tue, Dec 18, 2018 at 10:54:06AM +0000, 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 :|

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-18 11:16         ` Daniel P. Berrangé
@ 2018-12-18 13:11           ` BALATON Zoltan
  2018-12-18 13:27             ` Daniel P. Berrangé
  0 siblings, 1 reply; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-18 13:11 UTC (permalink / raw)
  To: Daniel P. Berrangé; +Cc: Mark Cave-Ayland, Gerd Hoffmann, qemu-devel

On Tue, 18 Dec 2018, Daniel P. Berrangé wrote:
> On Tue, Dec 18, 2018 at 10:54:06AM +0000, 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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-18 13:11           ` BALATON Zoltan
@ 2018-12-18 13:27             ` Daniel P. Berrangé
  2018-12-18 19:05               ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel P. Berrangé @ 2018-12-18 13:27 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Mark Cave-Ayland, Gerd Hoffmann, qemu-devel

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 +0000, 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 :|

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-18 13:27             ` Daniel P. Berrangé
@ 2018-12-18 19:05               ` BALATON Zoltan
  2018-12-19  9:53                 ` Daniel P. Berrangé
  0 siblings, 1 reply; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-18 19:05 UTC (permalink / raw)
  To: Daniel P. Berrangé; +Cc: Mark Cave-Ayland, Gerd Hoffmann, qemu-devel

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-18 19:05               ` BALATON Zoltan
@ 2018-12-19  9:53                 ` Daniel P. Berrangé
  2018-12-19 18:11                   ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel P. Berrangé @ 2018-12-19  9:53 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Mark Cave-Ayland, Gerd Hoffmann, qemu-devel

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 :|

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-19  9:53                 ` Daniel P. Berrangé
@ 2018-12-19 18:11                   ` BALATON Zoltan
  2018-12-20  5:42                     ` Gerd Hoffmann
  0 siblings, 1 reply; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-19 18:11 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Mark Cave-Ayland, Gerd Hoffmann, Howard Spoelstra, qemu-devel

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-19 18:11                   ` BALATON Zoltan
@ 2018-12-20  5:42                     ` Gerd Hoffmann
  2018-12-20 11:18                       ` BALATON Zoltan
  0 siblings, 1 reply; 17+ messages in thread
From: Gerd Hoffmann @ 2018-12-20  5:42 UTC (permalink / raw)
  To: BALATON Zoltan
  Cc: Daniel P. Berrangé, Mark Cave-Ayland, Howard Spoelstra, qemu-devel

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

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

* Re: [Qemu-devel] Monitor and serial output window broken with SDL2
  2018-12-20  5:42                     ` Gerd Hoffmann
@ 2018-12-20 11:18                       ` BALATON Zoltan
  0 siblings, 0 replies; 17+ messages in thread
From: BALATON Zoltan @ 2018-12-20 11:18 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Daniel P. Berrangé, Mark Cave-Ayland, Howard Spoelstra, qemu-devel

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

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

end of thread, other threads:[~2018-12-20 11:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 22:43 [Qemu-devel] Monitor and serial output window broken with SDL2 BALATON Zoltan
2018-03-21 14:06 ` Gerd Hoffmann
2018-03-21 17:25   ` BALATON Zoltan
2018-12-17 14:56     ` BALATON Zoltan
2018-12-17 15:00       ` Daniel P. Berrangé
2018-12-17 21:57         ` BALATON Zoltan
2018-12-18  5:54           ` Gerd Hoffmann
2018-12-18 10:58           ` Daniel P. Berrangé
2018-12-18 10:54       ` Mark Cave-Ayland
2018-12-18 11:16         ` Daniel P. Berrangé
2018-12-18 13:11           ` BALATON Zoltan
2018-12-18 13:27             ` Daniel P. Berrangé
2018-12-18 19:05               ` BALATON Zoltan
2018-12-19  9:53                 ` Daniel P. Berrangé
2018-12-19 18:11                   ` BALATON Zoltan
2018-12-20  5:42                     ` Gerd Hoffmann
2018-12-20 11:18                       ` BALATON Zoltan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.