-vmwarevga issues
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
Quoted 10 lines · 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:)
Quoted 5 lines
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
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.
Quoted 16 lines · Juergen Lock
Quoted 4 lines · 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.isoQuoted 11 lines
(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.
Quoted 83 lines
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.2Reading 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.2Reading 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]0x282bf776in memmove () from/lib/libc.so.6
(gdb) bt
#00x282bf776in memmove () from/lib/libc.so.6
#10x080afc3einvmsvga_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
Quoted 2 lines
(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