[Qemu-devel] [PATCH] softfloat missing functions

2007-03-19 Thread J. Mayer
Some functions are missing from the softfloat API. Those are: float32 uint32_to_float32( unsigned int STATUS_PARAM); float64 uint64_to_float64( uint64_t v STATUS_PARAM); unsigned int float32_to_uint32( float32 a STATUS_PARAM); unsigned int float32_to_uint32_round_to_zero( float32 a STATUS_PARAM);

[Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/03/19 08:08:28 Modified files: linux-user : main.c Log message: Add -cpu option for linux user emulation. Only usable for PowerPC and ARM for now. CVSWeb URLs:

Re: [Qemu-devel] KQEMU Darwin port status?

2007-03-19 Thread Mike Kronenberg
Hi there, On 17.03.2007, at 20:30, Philip Boulain wrote: Hi! I'll keep this succinct, because I'm sure they'd be FAQ-grade questions if this list had a FAQ: :) 1) Where's the version repository for KQEMU? It doesn't appear to be under/alongside QEMU itself. 2) Has anyone made any

Re: [Qemu-devel] please review this scsi patch

2007-03-19 Thread Avi Kivity
Wang Cheng Yeh wrote: thanks If you include a description of what the patch does and why it is necessary, it will probably be reviewed a lot quicker. -- error compiling committee.c: too many arguments to function ___ Qemu-devel mailing list

Re: [Qemu-devel] qemu/linux-user syscall.c

2007-03-19 Thread Kirill A. Shutemov
On [Sat, 17.03.2007 01:27], Paul Brook wrote: CVSROOT: /sources/qemu Module name: qemu Changes by: Paul Brook pbrook 07/03/17 01:27:24 Modified files: linux-user : syscall.c Log message: Usermode recv syscall fix. CVSWeb URLs:

[Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 12:16:29 Modified files: linux-user : main.c Log message: Support -cpu selection for mips usermode emulation. Fix segfault when dispaying the -cpu list help. CVSWeb

[Qemu-devel] qemu configure

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 12:22:40 Modified files: . : configure Log message: Solaris needs -lrt, spotted by Ben Taylor. CVSWeb URLs:

Re: [Qemu-devel] please review this scsi patch

2007-03-19 Thread Ben Taylor
Avi Kivity [EMAIL PROTECTED] wrote: Wang Cheng Yeh wrote: thanks If you include a description of what the patch does and why it is necessary, it will probably be reviewed a lot quicker. He's posted this one before, and the patch fixes such blatent programming errors like an XOR

Re: [Qemu-devel] scsi patch

2007-03-19 Thread Thiemo Seufer
? wrote: --- ../../tmp/qemu-0.9.0/hw/lsi53c895a.c2007-02-06 07:01: 54.0 +0800 +++ lsi53c895a.c2007-03-08 20:50:03.094098835 +0800 @@ -251,7 +251,7 @@ uint32_t ia; uint32_t sbc; uint32_t csbc; -uint32_t scratch[13]; /* SCRATCHA-SCRATCHR */ +

[Qemu-devel] qemu/linux-user syscall.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 13:05:13 Modified files: linux-user : syscall.c Log message: Fix allocation sizes in getpeername/getsockname, spotted by Kirill A. Shutemov. CVSWeb URLs:

[Qemu-devel] qemu/linux-user syscall.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 13:09:22 Modified files: linux-user : syscall.c Log message: Add missing header includes. CVSWeb URLs:

[Qemu-devel] PATCH: arm, mips and sparc targets on Host Solaris/sparc

2007-03-19 Thread Ben Taylor
This patch is to fix (correctly) running mips, sparc and arm targets on a Solaris/Sparc host. This patch reverts the patch posted February 2nd, 2007, (found at http://lists.gnu.org/archive/html/qemu-devel/2007-02/msg8.html for reference). Juergen Keil found that config.h was not included

[Qemu-devel] qemu Makefile.target linux-user/syscall.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 13:32:45 Modified files: . : Makefile.target linux-user : syscall.c Log message: Linux usermode clock_gettime/clock_getres emulation, by Kirill A.

[Qemu-devel] qemu/darwin-user syscall.c syscalls.h

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 13:43:05 Modified files: darwin-user: syscall.c syscalls.h Log message: Handling more darwin-user syscalls, by Ilya Shar. CVSWeb URLs:

Re: [Qemu-devel] PATCH: arm, mips and sparc targets on Host Solaris/sparc

2007-03-19 Thread Thiemo Seufer
Ben Taylor wrote: This patch is to fix (correctly) running mips, sparc and arm targets on a Solaris/Sparc host. This patch reverts the patch posted February 2nd, 2007, (found at http://lists.gnu.org/archive/html/qemu-devel/2007-02/msg8.html for reference). Juergen Keil found that

Re: [Qemu-devel] PATCH: arm, mips and sparc targets on Host Solaris/sparc

2007-03-19 Thread Ben Taylor
Thiemo Seufer [EMAIL PROTECTED] wrote: Ben Taylor wrote: This patch is to fix (correctly) running mips, sparc and arm targets on a Solaris/Sparc host. This patch reverts the patch posted February 2nd, 2007, (found at

[Qemu-devel] PATCH Makefile.target cleanup

2007-03-19 Thread Ben Taylor
This patch cleans up Makefile target for sparc32 and sparc64 Solaris and non-Solaris targets share a large amount of the definitions, so I split out the common parts and isolate just the Solaris/non-Solaris portions and added readability. Also fixed the x86_64 targets for Solaris to not use the

Re: [Qemu-devel] scsi patch

2007-03-19 Thread Wang Cheng Yeh
because (1) address of SCRATCHA is 0x34 (2) address from SCRATCHB to SCRATCHR are 0x5c ~ 0x9f you just see the code about part (2). I think the access code is right. 2007/3/19, Thiemo Seufer [EMAIL PROTECTED]: ? wrote: --- ../../tmp/qemu-0.9.0/hw/lsi53c895a.c2007-02-06 07:01:

[Qemu-devel] qemu/hw lsi53c895a.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 14:49:29 Modified files: hw : lsi53c895a.c Log message: SCSI fixes, by Wang Cheng Yeh. CVSWeb URLs:

[Qemu-devel] qemu target-arm/exec.h target-mips/exec.h targe...

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 14:47:40 Modified files: target-arm : exec.h target-mips: exec.h target-sparc : exec.h Log message: SPARC host fixes, by Ben Taylor. CVSWeb URLs:

[Qemu-devel] qemu monitor.c qemu-doc.texi sdl.c vl.c vl.h vnc.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 15:17:08 Modified files: . : monitor.c qemu-doc.texi sdl.c vl.c vl.h vnc.c Log message: Add -name option, by Anthony Liguori. CVSWeb URLs:

[Qemu-devel] [PATCH] Correct setuid behavious in linux-user

2007-03-19 Thread Stuart Anderson
The attached patch is needed to correctly emulate setuid executables. With this change, and by making qemu be setuid root (and assumming all of the risks and responsibilites of doing so), executables such as /bin/su will be able to create the correct environment.

[Qemu-devel] [PATCH] EABI fcntl on x86_64

2007-03-19 Thread Stuart Anderson
When running ARM EABI binaries on x86_64, the target_eabi_flock64 structure is already padded correct so the padding is not needed. This patch adds an #ifdef to only include the _pad member on 32-but hosts. Stuart Stuart R. Anderson

Re: [Qemu-devel] [PATCH] EABI fcntl on x86_64

2007-03-19 Thread Paul Brook
On Monday 19 March 2007 15:30, Stuart Anderson wrote: When running ARM EABI binaries on x86_64, the target_eabi_flock64 structure is already padded correct so the padding is not needed. This patch adds an #ifdef to only include the _pad member on 32-but hosts. This is wrong. The struct is

Re: [Qemu-devel] [PATCH] EABI fcntl on x86_64

2007-03-19 Thread Kirill A. Shutemov
On [Mon, 19.03.2007 11:30], Stuart Anderson wrote: When running ARM EABI binaries on x86_64, the target_eabi_flock64 structure is already padded correct so the padding is not needed. This patch adds an #ifdef to only include the _pad member on 32-but hosts. Are you sure that problem is in

Re: [Qemu-devel] [PATCH] EABI fcntl on x86_64

2007-03-19 Thread Stuart Anderson
On Mon, 19 Mar 2007, Paul Brook wrote: On Monday 19 March 2007 15:30, Stuart Anderson wrote: When running ARM EABI binaries on x86_64, the target_eabi_flock64 structure is already padded correct so the padding is not needed. This patch adds an #ifdef to only include the _pad member on 32-but

[Qemu-devel] qemu vl.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 15:58:31 Modified files: . : vl.c Log message: Improve -pidfile option, by Anthony Liguori. CVSWeb URLs:

[Qemu-devel] [PATCH] semctl support is incomplete

2007-03-19 Thread Stuart Anderson
The attached patch finishes adding support for semctl(). This was verified on ARM using the semctl test from LTP in the target. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network Software Engineering

Re: [Qemu-devel] [PATCH] Add info commands for serial/parallel devices

2007-03-19 Thread Thiemo Seufer
Anthony Liguori wrote: Howdy, The following patch adds an info serial and an info parallel command. Besides providing useful information (especially for the serial port), it provides a method for management tools to connect to a running VM and what character devices the serial/parallel

Re: [Qemu-devel] [PATCH] EABI fcntl on x86_64

2007-03-19 Thread Stuart Anderson
On Mon, 19 Mar 2007, Stuart Anderson wrote: I have a debian arm chroot setup. Just to clarify, this is from the applieddata.net repository, not the normal debian one (which is not eabi). Stuart Stuart R. Anderson [EMAIL

Re: [Qemu-devel] [PATCH] Automatically eject CD-ROM disk in Linux host system

2007-03-19 Thread Thiemo Seufer
Yu, Xiaoyang wrote: Hi, I wrote a patch to automatically eject a physical CD-ROM disk when: * Issue eject command in monitor console, or * Issue eject command in Linux guest system, or * In Windows guest system, press the right mouse button above CD-ROM icon, then select eject.

[Qemu-devel] qemu vl.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 16:36:43 Modified files: . : vl.c Log message: Close file descriptors when execing network tap setup script, by Daniel P. Berrange. CVSWeb URLs:

[Qemu-devel] qemu/fpu softfloat-native.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 16:46:07 Modified files: fpu: softfloat-native.c Log message: trunc() for Solaris 9 / SPARC, by Juergen Keil. CVSWeb URLs:

Re: [Qemu-devel] [PATCH] fcntl64 fix

2007-03-19 Thread Thiemo Seufer
Kirill A. Shutemov wrote: TARGET_F_*64 should be used instead of F_*64, because on 64-bit host systems F_GETLK == F_GETLK64(same for SETLK and SETLKW), so we cannot determinate if it's a long lock or not on a target 32-bit system. Patch in the attachment. P.S. Please, review my privious

Re: [Qemu-devel] [PATCH] fcntl64 fix

2007-03-19 Thread Stuart Anderson
My initial fix was before I started using LTP, and just took care of a single case that was holding me up. Now I have run the fcntl tests in LTP on ARM (both oABI and EABI) and there are a lot of failures indicating that there is a lot more work to be done yet on fcntl(). I'll take a look into

[Qemu-devel] qemu/hw rtl8139.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 18:20:28 Modified files: hw : rtl8139.c Log message: Fix big endian host operation, by Ben Taylor and Igor Kovalenko. CVSWeb URLs:

Re: [Qemu-devel] KQEMU Darwin port status?

2007-03-19 Thread Philip Boulain
On 19 Mar 2007, at 08:49, Mike Kronenberg wrote: I have made a empty kext and a dummy client to do some tests on this topics. Boundary crossing is working well, so by now the kext part is ready. http://www.kronenberg.org/files/kqemu_poc.zip Neat, thanks. Unfortunately, Apple decided to

[Qemu-devel] [PATCH] Implement division by 0 trap on the Sparc target

2007-03-19 Thread Aurelien Jarno
Hi all, A division by 0 currently does not generate a trap on the Sparc target, instead it crashes QEMU. The patch below fixes that. Bye, Aurelien Index: target-sparc/op.c === RCS file: /sources/qemu/qemu/target-sparc/op.c,v

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

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 19:16:00 Modified files: target-sparc : op.c Log message: Fix qemu crash due to sparc division-by-zero, by Aurelien Jarno. CVSWeb URLs:

Re: [Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread J. Mayer
On Mon, 2007-03-19 at 12:16 +, Thiemo Seufer wrote: CVSROOT: /sources/qemu Module name: qemu Changes by: Thiemo Seufer ths 07/03/19 12:16:29 Modified files: linux-user : main.c Log message: Support -cpu selection for mips usermode emulation. Fix segfault

[Qemu-devel] PATCH: arm guest on Solaris/Sparc host

2007-03-19 Thread Ben Taylor
This patch was suggested by Juergen Keil. It prevents a crash by qemu when running the arm-test on Solaris/Sparc. Removing the previous arm patch for sparc uncovered a use of global registers o0-05 which hadn't been defined previously. Ben--- qemu-ORIG/cpu-exec.c 2007-03-16 19:58:11.0

Re: [Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread Thiemo Seufer
J. Mayer wrote: On Mon, 2007-03-19 at 12:16 +, Thiemo Seufer wrote: CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 12:16:29 Modified files: linux-user : main.c Log message: Support -cpu selection for mips usermode

Re: [Qemu-devel] KQEMU Darwin port status?

2007-03-19 Thread Derek Fawcus
On Mon, Mar 19, 2007 at 06:54:35PM +, Philip Boulain wrote: Mmm, that's rather unhelpful. From my own reading, it looks like the Apple-approved way of doing this would be to use an IOMemoryDescriptor: initWithAddress() would initialise one which There was just a discussion relating

[Qemu-devel] qemu cpu-exec.c

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 20:39:50 Modified files: . : cpu-exec.c Log message: Fix call to generated code on SPARC, by Juergen Keil. CVSWeb URLs:

Re: [Qemu-devel] [PATCH] softfloat missing functions

2007-03-19 Thread Julian Seward
Note that float64_to_uint64 functions are not correct, as they won't return results between INT64_MAX and UINT64_MAX. Hope someone may know the proper solution for this. How about this? J uint64_t float64_to_uint64 (float64 a STATUS_PARAM) { uint64_t res; int64_t v; if

Re: [Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread Pierre Palatin
On Monday 19 March 2007 21:13:12 Thiemo Seufer wrote: J. Mayer wrote: On Mon, 2007-03-19 at 12:16 +, Thiemo Seufer wrote: CVSROOT: /sources/qemu Module name: qemu Changes by: Thiemo Seufer ths 07/03/19 12:16:29 Modified files: linux-user : main.c

Re: [Qemu-devel] [Bug] [Patch] MIPS code fails at branch instruction

2007-03-19 Thread Stefan Weil
Thank you, Paul, for your explanation which clarified Thiemo's statement. I now checked how my published test code could contribute to a DoS attack. Current QEMU HEAD: * The code hangs as I wrote before. This is from a user's point of view. Hanging means, that the test process runs in an

Re: [Qemu-devel] [PATCH] softfloat missing functions

2007-03-19 Thread J. Mayer
On Mon, 2007-03-19 at 20:37 +, Julian Seward wrote: Note that float64_to_uint64 functions are not correct, as they won't return results between INT64_MAX and UINT64_MAX. Hope someone may know the proper solution for this. How about this? Yes, it seems to be the correct way, but

Re: [Qemu-devel] qemu/linux-user main.c

2007-03-19 Thread Thiemo Seufer
Pierre Palatin wrote: On Monday 19 March 2007 21:13:12 Thiemo Seufer wrote: J. Mayer wrote: On Mon, 2007-03-19 at 12:16 +, Thiemo Seufer wrote: CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 12:16:29 Modified files:

Re: [Qemu-devel] [Bug] [Patch] MIPS code fails at branch instruction

2007-03-19 Thread Thiemo Seufer
Stefan Weil wrote: Thank you, Paul, for your explanation which clarified Thiemo's statement. I now checked how my published test code could contribute to a DoS attack. Current QEMU HEAD: * The code hangs as I wrote before. This is from a user's point of view. Hanging means, that the

[Qemu-devel] qemu target-m68k/translate.c target-mips/transl...

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 21:46:06 Modified files: target-m68k: translate.c target-mips: translate.c target-ppc : translate.c target-sh4 : translate.c Log message:

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

2007-03-19 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer ths 07/03/19 22:15:30 Modified files: target-mips: translate.c Log message: Barf on branches/jumps in branch delay slots. Spotted by Stefan Weil. CVSWeb URLs:

Re: [Qemu-devel] KQEMU Darwin port status?

2007-03-19 Thread Philip Boulain
On 19 Mar 2007, at 20:23, Derek Fawcus wrote: There was just a discussion relating to this on the darwin-kernel list, you may wish to review the archive. (The thread starts at http://lists.apple.com/archives/Darwin-kernel/ 2007/Mar/msg00010.html). Thanks; looking at this post, I'm probably

Re: [Qemu-devel] [Bug] [Patch] MIPS code fails at branch instruction

2007-03-19 Thread Thiemo Seufer
Thiemo Seufer wrote: [snip] Patched QEMU HEAD (see appended patch file): * The code works in a well defined way. An optional message in the log file will show the faulty statement. It won't amount to a DoS because it is disabled by default. Sorry, but I missed the well defined.

[Fwd: Re: [Qemu-devel] [PATCH] softfloat missing functions]

2007-03-19 Thread J. Mayer
Repost: looks like this message never reached the list Forwarded Message From: J. Mayer [EMAIL PROTECTED] To: Julian Seward [EMAIL PROTECTED] Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH] softfloat missing functions Date: Mon, 19 Mar 2007 22:10:14 +0100

Re: [Qemu-devel] [PATCH] softfloat missing functions

2007-03-19 Thread Julian Seward
Thinking about this more, you ask is this correct, but that is only meaningful if you say what the specification is. Correct relative to what? Yes, it seems to be the correct way, but thinking more about the problem, it appeared to me that the implementation could be even easier than yours.

Re: [Qemu-devel] [PATCH] softfloat missing functions

2007-03-19 Thread J. Mayer
On Mon, 2007-03-19 at 22:53 +, Julian Seward wrote: Thinking about this more, you ask is this correct, but that is only meaningful if you say what the specification is. Correct relative to what? Yes, it seems to be the correct way, but thinking more about the problem, it appeared to

Re: [Qemu-devel] KQEMU Darwin port status?

2007-03-19 Thread Philip Boulain
Mike Kronenberg wrote: So any suggestions on how to lock user pages in Darwin would be very welcome. Philip Boulain wrote: Thanks; looking at this post, I'm probably barking up the right tree Right. I've cobbled up the aformentioned prototype, and it working insofar that the modified

Re: [Qemu-devel] [PATCH] fcntl64 fix

2007-03-19 Thread Stuart Anderson
On Mon, 19 Mar 2007, Stuart Anderson wrote: My initial fix was before I started using LTP, and just took care of a single case that was holding me up. Now I have run the fcntl tests in LTP on ARM (both oABI and EABI) and there are a lot of failures indicating that there is a lot more work to