qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] -vmwarevga issues
@ 2007-04-05 20:13 Juergen Lock
  2007-04-05 20:40 ` [Qemu-devel] " Juergen Lock
  0 siblings, 1 reply; 3+ messages in thread
From: Juergen Lock @ 2007-04-05 20:13 UTC (permalink / raw)
  To: qemu-devel

I just tried this new toy and found these things:

1. Has it been tested with xorg 7.1.0 guests?  I booted
	http://debian.tu-bs.de/project/sidux/release/SIDUX-2007-01-200702210759-CHAOS.ISO
(see
	http://www.sidux.com/Article116.html
, it is based on debian sid and has has xorg 7.1.0) and it detected the
vmware vga, but hung when trying to start X.
2. And with
	http://ftp.us.freesbie.org/pub/FreeSBIE/2.0.1-RELEASE/FreeSBIE-2.0.1-RELEASE.iso
(see
	http://www.freesbie.org/
, based on FreeBSD 6.2 and using xorg 6.9.0) it worked (after editing
`Driver "vmware"' into xorg.conf because its xorg autoconfiguration
didnt know that card), but caused both the ne2kpci (ed0) and es1370
(pcm0) cards not to be detected: (from bootverbose dmesg:)
	ed0: <RealTek 8029> port 0xfffffb00-0xfffffbff irq 11 at device 3.0 on pci0
	device_attach: ed0 attach returned 2
	pcm0: <AudioPCI ES1370> port 0xfffffc00-0xfffffcff irq 9 at device 4.0 on pci0
	pcm0: unable to map register space
(both are detected and work when using the default cirrus vga.)

 Interestingly, the new eepro100 nic which I also tried (i82559er == fxp0,
see other post) still worked...  And I just tried the rtl8139 nic (re0)
which also didn't work, saying:
	re0: couldn't map ports/memory
	rl0: couldn't map ports/memory
(the rl driver also matches for this pci id, but would use non-C+ mode
which eats more cpu.)

 Hope this is helpful to some :)

	Juergen

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

* [Qemu-devel] Re: -vmwarevga issues
  2007-04-05 20:13 [Qemu-devel] -vmwarevga issues Juergen Lock
@ 2007-04-05 20:40 ` Juergen Lock
  2007-04-06  0:10   ` andrzej zaborowski
  0 siblings, 1 reply; 3+ messages in thread
From: Juergen Lock @ 2007-04-05 20:40 UTC (permalink / raw)
  To: qemu-devel

On Thu, Apr 05, 2007 at 10:13:22PM +0200, I wrote:
>...

> 2. And with
> 	http://ftp.us.freesbie.org/pub/FreeSBIE/2.0.1-RELEASE/FreeSBIE-2.0.1-RELEASE.iso
> (see
> 	http://www.freesbie.org/
> , based on FreeBSD 6.2 and using xorg 6.9.0) it worked (after editing
> `Driver "vmware"' into xorg.conf because its xorg autoconfiguration
> didnt know that card), but caused both the ne2kpci (ed0) and es1370
> (pcm0) cards not to be detected: (from bootverbose dmesg:)
> 	ed0: <RealTek 8029> port 0xfffffb00-0xfffffbff irq 11 at device 3.0 on pci0
> 	device_attach: ed0 attach returned 2
> 	pcm0: <AudioPCI ES1370> port 0xfffffc00-0xfffffcff irq 9 at device 4.0 on pci0
> 	pcm0: unable to map register space
> (both are detected and work when using the default cirrus vga.)

Hmm I just found qemu that I had left running hang (monitor, on stdio,
not responding), attaching gdb found it here:

Script started on Thu Apr  5 22:29:42 2007
% gdb work/qemu-snapshot-2007-04-05_05/i386-softmmu/qemu 24677
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Attaching to program: /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/i386-softmmu/qemu, process 24677
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libSDL.so.11...done.
Loaded symbols for /usr/local/lib/libSDL.so.11
Reading symbols from /lib/libutil.so.5...done.
Loaded symbols for /lib/libutil.so.5
Reading symbols from /usr/lib/libpthread.so.2...done.

warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100167]
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libvga.so.1...done.
Loaded symbols for /usr/local/lib/libvga.so.1
Reading symbols from /usr/lib/libvgl.so.4...done.
Loaded symbols for /usr/lib/libvgl.so.4
Reading symbols from /usr/local/lib/libaa.so.1...done.
Loaded symbols for /usr/local/lib/libaa.so.1
Reading symbols from /usr/lib/libusbhid.so.2...done.
Loaded symbols for /usr/lib/libusbhid.so.2
Reading symbols from /lib/libncurses.so.6...done.
Loaded symbols for /lib/libncurses.so.6
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
[Switching to LWP 100167]
0x282bf776 in memmove () from /lib/libc.so.6
(gdb) bt
#0  0x282bf776 in memmove () from /lib/libc.so.6
#1  0x080afc3e in vmsvga_fifo_run (s=0x9ba71d4)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/hw/vmware_vga.c:373
#2  0x080b029c in vmsvga_update_display (opaque=0x9ba71d4)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/hw/vmware_vga.c:862
#3  0x08057f54 in vga_hw_update ()
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/console.c:149
#4  0x080b1e30 in sdl_refresh (ds=0x8130760)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/sdl.c:344
#5  0x08050a61 in gui_update (opaque=0x0)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6146
#6  0x0804bf05 in qemu_run_timers (ptimer_head=0x81307cc, current_time=Unhandled dwarf expression opcode 0x93
)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:882
#7  0x0805150d in main_loop_wait (timeout=0)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6400
#8  0x0805161d in main_loop ()
---Type <return> to continue, or q <return> to quit---
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6473
#9  0x0805300d in main (argc=16, argv=0xbfbfe818)
    at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:7817
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y

 Not sure this is related to the vmware vga, it might be a (kernel-)kqemu
thing...

	Juergen

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

* Re: [Qemu-devel] Re: -vmwarevga issues
  2007-04-05 20:40 ` [Qemu-devel] " Juergen Lock
@ 2007-04-06  0:10   ` andrzej zaborowski
  0 siblings, 0 replies; 3+ messages in thread
From: andrzej zaborowski @ 2007-04-06  0:10 UTC (permalink / raw)
  To: Juergen Lock, qemu-devel

Hi, thanks for the report.
I tested with Xorg 7.1.1 only and on Linux only - I will try to find
out what's happening on 7.1.0.

On 05/04/07, Juergen Lock <qemu-l@jelal.kn-bremen.de> wrote:
> On Thu, Apr 05, 2007 at 10:13:22PM +0200, I wrote:
> >...
>
> > 2. And with
> >       http://ftp.us.freesbie.org/pub/FreeSBIE/2.0.1-RELEASE/FreeSBIE-2.0.1-RELEASE.iso
> > (see
> >       http://www.freesbie.org/
> > , based on FreeBSD 6.2 and using xorg 6.9.0) it worked (after editing
> > `Driver "vmware"' into xorg.conf because its xorg autoconfiguration
> > didnt know that card), but caused both the ne2kpci (ed0) and es1370
> > (pcm0) cards not to be detected: (from bootverbose dmesg:)
> >       ed0: <RealTek 8029> port 0xfffffb00-0xfffffbff irq 11 at device 3.0 on pci0
> >       device_attach: ed0 attach returned 2
> >       pcm0: <AudioPCI ES1370> port 0xfffffc00-0xfffffcff irq 9 at device 4.0 on pci0
> >       pcm0: unable to map register space
> > (both are detected and work when using the default cirrus vga.)

Ouch. Probably I should have better figured out how the IO address is
chosen instead of copying the address that the original VMware PCI
card uses.

>
> Hmm I just found qemu that I had left running hang (monitor, on stdio,
> not responding), attaching gdb found it here:
>
> Script started on Thu Apr  5 22:29:42 2007
> % gdb work/qemu-snapshot-2007-04-05_05/i386-softmmu/qemu 24677
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd"...
> Attaching to program: /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/i386-softmmu/qemu, process 24677
> Reading symbols from /lib/libm.so.4...done.
> Loaded symbols for /lib/libm.so.4
> Reading symbols from /lib/libz.so.3...done.
> Loaded symbols for /lib/libz.so.3
> Reading symbols from /usr/local/lib/libSDL.so.11...done.
> Loaded symbols for /usr/local/lib/libSDL.so.11
> Reading symbols from /lib/libutil.so.5...done.
> Loaded symbols for /lib/libutil.so.5
> Reading symbols from /usr/lib/libpthread.so.2...done.
>
> warning: Unable to get location for thread creation breakpoint: generic error
> [New LWP 100167]
> Loaded symbols for /usr/lib/libpthread.so.2
> Reading symbols from /lib/libc.so.6...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /usr/local/lib/libiconv.so.3...done.
> Loaded symbols for /usr/local/lib/libiconv.so.3
> Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
> Loaded symbols for /usr/X11R6/lib/libX11.so.6
> Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
> Loaded symbols for /usr/X11R6/lib/libXext.so.6
> Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
> Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
> Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
> Loaded symbols for /usr/X11R6/lib/libXrender.so.1
> Reading symbols from /usr/local/lib/libvga.so.1...done.
> Loaded symbols for /usr/local/lib/libvga.so.1
> Reading symbols from /usr/lib/libvgl.so.4...done.
> Loaded symbols for /usr/lib/libvgl.so.4
> Reading symbols from /usr/local/lib/libaa.so.1...done.
> Loaded symbols for /usr/local/lib/libaa.so.1
> Reading symbols from /usr/lib/libusbhid.so.2...done.
> Loaded symbols for /usr/lib/libusbhid.so.2
> Reading symbols from /lib/libncurses.so.6...done.
> Loaded symbols for /lib/libncurses.so.6
> Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
> Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
> Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
> Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
> Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
> Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
> Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
> Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
> Reading symbols from /libexec/ld-elf.so.1...done.
> Loaded symbols for /libexec/ld-elf.so.1
> [Switching to LWP 100167]
> 0x282bf776 in memmove () from /lib/libc.so.6
> (gdb) bt
> #0  0x282bf776 in memmove () from /lib/libc.so.6
> #1  0x080afc3e in vmsvga_fifo_run (s=0x9ba71d4)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/hw/vmware_vga.c:373
> #2  0x080b029c in vmsvga_update_display (opaque=0x9ba71d4)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/hw/vmware_vga.c:862
> #3  0x08057f54 in vga_hw_update ()
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/console.c:149
> #4  0x080b1e30 in sdl_refresh (ds=0x8130760)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/sdl.c:344
> #5  0x08050a61 in gui_update (opaque=0x0)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6146
> #6  0x0804bf05 in qemu_run_timers (ptimer_head=0x81307cc, current_time=Unhandled dwarf expression opcode 0x93
> )
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:882
> #7  0x0805150d in main_loop_wait (timeout=0)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6400
> #8  0x0805161d in main_loop ()
> ---Type <return> to continue, or q <return> to quit---
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:6473
> #9  0x0805300d in main (argc=16, argv=0xbfbfe818)
>     at /ad4/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-04-05_05/vl.c:7817
> (gdb) q
> The program is running.  Quit anyway (and detach it)? (y or n) y

Probably the guest driver is passing coordinates that we don't expect
- we don't check that they are in range. Disabling the
#define HW_RECT_ACCEL
#define HW_FILL_ACCEL
near the top of hw/vmware_vga.c should make it safe before it's
properly fixed. I will be offline for the whole week from now :(

Thanks,
Andrzej

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

end of thread, other threads:[~2007-04-06  0:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 20:13 [Qemu-devel] -vmwarevga issues Juergen Lock
2007-04-05 20:40 ` [Qemu-devel] " Juergen Lock
2007-04-06  0:10   ` andrzej zaborowski

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).