[Qemu-devel] Re: QEMU: "qemu -M pc" works, "qemu-i386" crashes.

2007-06-25 Thread Rob Landley
On Monday 25 June 2007 10:37:27 Alexander van Heukelum wrote: > --- linux-user/main.c (révision 527) > +++ linux-user/main.c (copie de travail) > @@ -44,7 +44,7 @@ > > /* for recent libc, we add these dummy symbols which are not declared > when generating a linked object (bug in ld ?) */

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Karl Magdsick
Depends on if you're using the LP64 model (64-bit Linux, many other *NIX) or the LLP64 model (Win64). I guess Microsoft decided there was more code written for their system that assumed longs were 32-bit than code that assumed pointers could be stored in (unsigned) longs. For 64-bit MS Windows

[Qemu-devel] Missing system calls retries in case of EINTR

2007-06-25 Thread Yigael Fleishman
Running qemu on a Ubuntu Feisty host I've encountered an occasional failure-to-launch problem. I've used the "-serial /dev/ttyS0" at the command line, and qemu would often exit printing "could not open serial device". Looking in the srcs I've noticed that qemu_chr_open_tty does not retry the 'ope

[Qemu-devel] sidt problem

2007-06-25 Thread Clemens Kolbitsch
hi everyone! i have a strange problem: i use the following code on my linux 2.6.20 (kubuntu debian, i386) to dynamically get the location of the system-call table (as can also be found in /proc/kallsyms --> "sys_call_table") as it is quite interesting for new exploits ( :-) ) on a real cpu

[Qemu-devel] [PATCH] syscall getgroups() optimization

2007-06-25 Thread Kirill A. Shutemov
On success, getgroups() returns the number of supplementary group IDs. So, we can swap real number group IDs. Patch in the attachment. -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --- qemu/linux-user/syscal

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Michal Schulz
On Monday 25 June 2007, Blue Swirl wrote: > Nice, I didn't know about that. But how is this any different from > unsigned long? It may be the same. But at least the code looks more consistent (IMHO) :) -- Michal Schulz

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Blue Swirl
On 6/25/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Blue Swirl wrote: > This patch removes the restriction of 2G ram size on 64-bit hosts. > Theoretically Sparc32 on a SS-10 like machine could handle more than > 62GB of memory. > > There seems to be problems in the boot BIOSes to manage even >2G

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Blue Swirl
On 6/25/07, Michal Schulz <[EMAIL PROTECTED]> wrote: On Monday 25 June 2007, Blue Swirl wrote: > This patch removes the restriction of 2G ram size on 64-bit hosts. > Theoretically Sparc32 on a SS-10 like machine could handle more than > 62GB of memory. > > There seems to be problems in the boot B

Re: [Qemu-devel] sparc guest

2007-06-25 Thread Andreas Färber
Am 25.06.2007 um 22:07 schrieb Nigel Horne: Blue Swirl wrote: On 6/25/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Nigel Horne wrote: > Good news, sparc emulation with -nographic no longer core dumps. > > The bad news, networking still fails: FYI, I see a transmit error for ne2k_isa on mips

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Thiemo Seufer
Blue Swirl wrote: > This patch removes the restriction of 2G ram size on 64-bit hosts. > Theoretically Sparc32 on a SS-10 like machine could handle more than > 62GB of memory. > > There seems to be problems in the boot BIOSes to manage even >2G > memory sizes, I've found some in OpenBIOS but there

Re: [Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Michal Schulz
On Monday 25 June 2007, Blue Swirl wrote: > This patch removes the restriction of 2G ram size on 64-bit hosts. > Theoretically Sparc32 on a SS-10 like machine could handle more than > 62GB of memory. > > There seems to be problems in the boot BIOSes to manage even >2G > memory sizes, I've found som

[Qemu-devel] [PATCH, RFC] More than 2G of memory on 64-bit hosts

2007-06-25 Thread Blue Swirl
This patch removes the restriction of 2G ram size on 64-bit hosts. Theoretically Sparc32 on a SS-10 like machine could handle more than 62GB of memory. There seems to be problems in the boot BIOSes to manage even >2G memory sizes, I've found some in OpenBIOS but there are still many left. Any co

Re: [Qemu-devel] sparc guest

2007-06-25 Thread Nigel Horne
Blue Swirl wrote: On 6/25/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Nigel Horne wrote: > Good news, sparc emulation with -nographic no longer core dumps. > > The bad news, networking still fails: FYI, I see a transmit error for ne2k_isa on mips r4k. Maybe that's related. On my test cases t

Re: [Qemu-devel] sparc guest

2007-06-25 Thread Blue Swirl
On 6/25/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Nigel Horne wrote: > Good news, sparc emulation with -nographic no longer core dumps. > > The bad news, networking still fails: FYI, I see a transmit error for ne2k_isa on mips r4k. Maybe that's related. On my test cases the network is still

Re: [Qemu-devel] Re: Netbsd/sparc seems to sort-of boot on the 20070622 CVS release

2007-06-25 Thread Blue Swirl
On 6/25/07, Jonathan Kalbfeld <[EMAIL PROTECTED]> wrote: Okay, I got NetBSD 3.1/sparc to get all the way to the "scsibus0: waiting 2 seconds for devices to settle..." The delay that never finishes could be a problem in either the timer or interrupt emulation. I feel like we might already be a

Re: [Qemu-devel] sparc guest

2007-06-25 Thread Thiemo Seufer
Nigel Horne wrote: > Good news, sparc emulation with -nographic no longer core dumps. > > The bad news, networking still fails: FYI, I see a transmit error for ne2k_isa on mips r4k. Maybe that's related. Thiemo

[Qemu-devel] qemu/hw slavio_serial.c sun4m.c tcx.c

2007-06-25 Thread Blue Swirl
CVSROOT:/cvsroot/qemu Module name:qemu Changes by: Blue Swirl 07/06/25 19:56:13 Modified files: hw : slavio_serial.c sun4m.c tcx.c Log message: Rename variables and rearrange code to please gcc -Wshadow checks CVSWeb URLs: http://cvs.savannah.gnu.o

[Qemu-devel] qemu/target-sparc translate.c

2007-06-25 Thread Blue Swirl
CVSROOT:/cvsroot/qemu Module name:qemu Changes by: Blue Swirl 07/06/25 19:52:58 Modified files: target-sparc : translate.c Log message: Drop unused parameters CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/translate.c?cvsroot=qemu&r1=1.59

[Qemu-devel] sparc guest

2007-06-25 Thread Nigel Horne
Good news, sparc emulation with -nographic no longer core dumps. The bad news, networking still fails: SunLance: using auto-carrier-detection. eth0: LANCE 52:54:00:12:34:56 Skipping already loaded module esp. Setting up networking...done. Setting up IP spoofing protection: rp_filter. Config

Re: [Qemu-devel] Qemu on Windows: Redirect output to console

2007-06-25 Thread andrzej zaborowski
Hi, On 25/06/07, Peter Laursen <[EMAIL PROTECTED]> wrote: Hi everyone, Thanks for your replies, they have been of great help. I still havenøt solved the basic problem of redirecting the output to a console, mostly because -nographic does not work on Windows ports of Qemu... There already are L

[Qemu-devel] Fixes for ia64 host

2007-06-25 Thread Andreas Schwab
This patch fixes some problems with qemu hosted on ia64: - remove unaligned accesses in ia64_apply_fixes - make sure that the static variables are not optimized away in GOTO_TB. Andreas. --- dyngen.h8 May 2007 23:30:44 - 1.14 +++ dyngen.h25 Jun 2007 18:15:39 - @@ -392,7 +39

[Qemu-devel] Re: Netbsd/sparc seems to sort-of boot on the 20070622 CVS release

2007-06-25 Thread Jonathan Kalbfeld
Okay, I got NetBSD 3.1/sparc to get all the way to the "scsibus0: waiting 2 seconds for devices to settle..." I feel like we might already be almost there -- On 6/22/07, Jonathan Kalbfeld <[EMAIL PROTECTED]> wrote: Not going to count my kittens before they scratch... -- -- Jonathan Kalbfeld +

Re: [Qemu-devel] [PATCH, MIPS] Code translation improvement

2007-06-25 Thread Thiemo Seufer
Aurelien Jarno wrote: > Hi, > > The patch below makes a few improvement to the code translation, and fixes > a small bug: > > - The check for the bit ERL in CP0 Status register implies that the CPU > is in kernel mode, so there is no need to further check for user mode. Applied. > - Checking

Re: [Qemu-devel] Qemu on Windows: Redirect output to console

2007-06-25 Thread Peter Laursen
Hi everyone, Thanks for your replies, they have been of great help. I still havenøt solved the basic problem of redirecting the output to a console, mostly because -nographic does not work on Windows ports of Qemu... There already are Linux operating systems that ship with screen readers that

[Qemu-devel] qemu/target-mips helper.c op.c

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 17:34:33 Modified files: target-mips: helper.c op.c Log message: MIPS64 improvements, based on a patch by Aurelien Jarno. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/targ

[Qemu-devel] qemu build problem: 0.9.0

2007-06-25 Thread Nico -telmich- Schottelius
Hello! I tried to build qemu with gcc-4, is that impossible currently? I get this compile error: gcc -Wall -O2 -g -fno-strict-aliasing -mpreferred-stack-boundary=2 -fomit-frame-pointer -falign-functions=0 -fno-gcse -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I.. -I/home/user/chdscni9/b

Re: [Qemu-devel] usb_host: only one interface supported

2007-06-25 Thread Christopher Friedt
I just applied the patch located in this thread: http://lists.gnu.org/archive/html/qemu-devel/2007-06/msg00331.html and it worked! Thanks Arnaud Christopher Friedt wrote: Hi everyone, I'm trying to plug in a usb device (Motorola L2 phone, with micro usb connector). When I try to add it us

[Qemu-devel] usb_host: only one interface supported

2007-06-25 Thread Christopher Friedt
Hi everyone, I'm trying to plug in a usb device (Motorola L2 phone, with micro usb connector). When I try to add it using the qemu console, usb_add host:22b8:4902 I get the response "usb_host: only one interface supported" in the standard output / error. What does this mean exactly? Is th

Re: [Qemu-devel] sh4: more patches

2007-06-25 Thread Blue Swirl
On 6/22/07, Magnus Damm <[EMAIL PROTECTED]> wrote: The method used to locate emulation bugs may be of value for other fellow qemu hackers. I've written a small gdb script that single steps in an endless loop dumping registers between each instruction. Then I've used this script on both real targe

Re: [Qemu-devel] [PATCH] starting qemu vnc session on a pre-allocated port

2007-06-25 Thread n schembr
Gilad Ben-Yossef wrote: >If you think users other then us will use the patch (and we believe they will), >we think it'll be useful for this to be included in qemu mainline. I have more then 100 images on one box. It would make it much easer to write my startup scripts. :) Background 10 host with

[Qemu-devel] Re: QEMU: "qemu -M pc" works, "qemu-i386" crashes.

2007-06-25 Thread Alexander van Heukelum
On Sun, 24 Jun 2007 14:22:19 -0400, "Rob Landley" <[EMAIL PROTECTED]> said: > On Sunday 24 June 2007 09:13:57 Alexander van Heukelum wrote: > > Hi, > > > > $SUBJECT > > > > At least for me ;), for the latest snapshot of qemu, on Ubuntu 7.04 > > on an AMD Opteron system. > > Yeah, I think that's wh

[Qemu-devel] qemu/target-sh4 cpu.h op.c

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 13:53:11 Modified files: target-sh4 : cpu.h op.c Log message: Handle endianness of double floats, by Magnus Damm. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/c

[Qemu-devel] qemu/hw ne2000.c

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 13:47:44 Modified files: hw : ne2000.c Log message: Insufficient input validation in NE2000 card, written by Tavis Ormandy, contributed by Aurelien Jarno. CVSWeb UR

Re: [Qemu-devel] sh4: more patches

2007-06-25 Thread Thiemo Seufer
Magnus Damm wrote: > Hi Thiemo, > > Thanks for the review and commit help! > > On 6/22/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: > >Magnus Damm wrote: > >> The patches attached in this email contain the following fixes: > >> > >> - sh4: Swap word order when accessing double floats > > > >Doesn

Re: [Qemu-devel] [PATCH] starting qemu vnc session on a pre-allocated port

2007-06-25 Thread Anthony Liguori
Gilad Ben-Yossef wrote: Hi Anthony, Thanks for the feedback. I'm afraid I'm to blame for the idea to this patch (but Shahar was the one that actually did the real work, I'm just bothering him). Anthony Liguori wrote: The problem with the solution you suggest is that all VNC traffic will

[Qemu-devel] qemu vl.c

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 11:48:07 Modified files: . : vl.c Log message: Enable serial (tty) support on Solaris host, by Marion Hakanson. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?

[Qemu-devel] qemu Changelog

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 11:41:37 Modified files: . : Changelog Log message: Update Changelog. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/Changelog?cvsroot=qemu&r1=1.136&r2=1.137

[Qemu-devel] qemu readline.c

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 11:36:50 Modified files: . : readline.c Log message: Implement ^W in readline.c, by Michal Hanselmann. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/readline.c?cvs

[Qemu-devel] qemu Makefile.target vl.h hw/mips_pica61.c hw/j...

2007-06-25 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/06/25 10:57:10 Modified files: . : Makefile.target vl.h hw : mips_pica61.c Added files: hw : jazz_led.c Log message: Add a 7 segments +

Re: [Qemu-devel] [PATCH] starting qemu vnc session on a pre-allocated port

2007-06-25 Thread Gilad Ben-Yossef
Hi Anthony, Thanks for the feedback. I'm afraid I'm to blame for the idea to this patch (but Shahar was the one that actually did the real work, I'm just bothering him). Anthony Liguori wrote: The problem with the solution you suggest is that all VNC traffic will be first sent to the unix d