[Qemu-devel] qemu/target-ppc cpu.h

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/18 11:17:30 Modified files: target-ppc : cpu.h Log message: Fix PowerPC 32 emulation on 64 bits hosts: we can use 64 bits registers but not pretend page is 1kB long

Re: [Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-18 Thread Philip Boulain
On 18 Sep 2007, at 00:56, Ben Taylor wrote: J. Mayer [EMAIL PROTECTED] wrote: On Mon, 2007-09-17 at 23:14 +0200, Luca wrote: On 9/17/07, Andreas Färber [EMAIL PROTECTED] wrote: Am 17.09.2007 um 14:18 schrieb Christian MICHON: On 9/17/07, Philip Boulain [EMAIL PROTECTED] wrote: ...merely

[Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Thayne Harbaugh
Has anyone seen an insta-segfault with i386-linux-user qemu? I've compiled qemu-0.9.0 as well as qemu-cvs (2007-09-18) with gcc-3.4 and -fno-strict-aliasing on an amd64 and I get this: ./i386-linux-user/qemu-i386 --help Segmentation fault From GDB: Program received signal SIGSEGV, Segmentation

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Ronald
Thayne Harbaugh schreef: Has anyone seen an insta-segfault with i386-linux-user qemu? I've compiled qemu-0.9.0 as well as qemu-cvs (2007-09-18) with gcc-3.4 and -fno-strict-aliasing on an amd64 and I get this: ./i386-linux-user/qemu-i386 --help Segmentation fault From GDB: Program received

Re: [Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-18 Thread Thiemo Seufer
J. Mayer wrote: [snip] Another point is CVS is an industry standard. It has many drawbacks but is prooven to do its job as specified in a very reliable way. For now, not such a thing for git, afaik. If it ever become the new industry standard, after having prooven its reliability and long term

Re: [Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-18 Thread Andreas Färber
Hey, Am 18.09.2007 um 00:47 schrieb Johannes Schindelin: Both the qemu.org and the Savannah project page only mention CVS. If there are better ways to get the code then inform your users how to use that. What about graphical diff tools? Should you _not_ use them, because CVS has an

Re: [Qemu-devel] [PATCH] SVM support

2007-09-18 Thread Blue Swirl
On 9/18/07, J. Mayer [EMAIL PROTECTED] wrote: Going this way, I see no reason why the interruption code in the cpu_exec loop could not finally become: interrupt_request = env-interrupt_request; if (__builtin_expect(interrupt_request, 0)) {

Re: [Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-18 Thread Stefan Weil
Philip Boulain schrieb: ARGH. Unless QEMU is /actually/ going to spend the time switching repository systems for no forward progress, _off-topic_! LionsPhil (SVN beats all, clearly. ;) ) I agree - it might be a good idea to switch from CVS to Subversion (SVN): * Both are reliable and well

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Thayne Harbaugh
On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: Thayne Harbaugh schreef: Has anyone seen an insta-segfault with i386-linux-user qemu? I've compiled qemu-0.9.0 as well as qemu-cvs (2007-09-18) with gcc-3.4 and -fno-strict-aliasing on an amd64 and I get this: ./i386-linux-user/qemu-i386

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Alexander Graf
On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: Thayne Harbaugh schreef: Has anyone seen an insta-segfault with i386-linux-user qemu? I've compiled qemu-0.9.0 as well as qemu-cvs (2007-09-18) with gcc-3.4 and -fno-strict-aliasing on an

[Fwd: Re: [Qemu-devel] [PATCH] SVM support]

2007-09-18 Thread J. Mayer
Forwarded, as requested. Forwarded Message From: Alexander Graf [EMAIL PROTECTED] To: J.Mayer [EMAIL PROTECTED] Subject: Re: [Qemu-devel] [PATCH] SVM support Date: Tue, 18 Sep 2007 13:51:26 +0200 On Sep 18, 2007, at 12:09 PM, J. Mayer wrote: On Tue, 2007-09-18 at

[Qemu-devel] qemu/hw ppc405_uc.c

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/18 21:47:18 Modified files: hw : ppc405_uc.c Log message: Always keep the bootinfo structure in the first 16 MB, as suggested by Andrew May. Fix

[Qemu-devel] qemu/linux-user syscall_defs.h

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/18 21:54:57 Modified files: linux-user : syscall_defs.h Log message: Fix invalid MAP_xxx flags for PowerPC targets. CVSWeb URLs:

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Thayne Harbaugh
On Tue, 2007-09-18 at 21:11 +0200, Alexander Graf wrote: On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: Thayne Harbaugh schreef: SNIP ./i386-linux-user/qemu-i386 --help Segmentation fault From GDB: Program received signal

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Alexander Graf
On Sep 18, 2007, at 11:49 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 21:11 +0200, Alexander Graf wrote: On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: Thayne Harbaugh schreef: SNIP ./i386-linux-user/qemu-i386 --help

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread J. Mayer
On Wed, 2007-09-19 at 00:07 +0200, Alexander Graf wrote: On Sep 18, 2007, at 11:49 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 21:11 +0200, Alexander Graf wrote: On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: Thayne Harbaugh

Re: [Fwd: Re: [Qemu-devel] [PATCH] SVM support]

2007-09-18 Thread J. Mayer
On Tue, 2007-09-18 at 22:54 +0200, J. Mayer wrote: Forwarded, as requested. Forwarded Message From: Alexander Graf [EMAIL PROTECTED] To: J.Mayer [EMAIL PROTECTED] Subject: Re: [Qemu-devel] [PATCH] SVM support Date: Tue, 18 Sep 2007 13:51:26 +0200 On Sep 18, 2007,

Re: [Qemu-devel] Insta-segfault! i386-linux-user

2007-09-18 Thread Alexander Graf
On Sep 19, 2007, at 12:41 AM, J. Mayer wrote: On Wed, 2007-09-19 at 00:07 +0200, Alexander Graf wrote: On Sep 18, 2007, at 11:49 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at 21:11 +0200, Alexander Graf wrote: On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: On Tue, 2007-09-18 at

[Fwd: [Qemu-devel] RFC: linux user problems]

2007-09-18 Thread J. Mayer
Following my previous message, I did a patch that makes syscalls take target_long/target_ulong argument and return target_long value instead of long/unsigned long. I also included the #ifdef protection for do_socketcall and do_ipc to avoid compilation warnings. And I also converted the fd given to

Re: [Fwd: Re: [Qemu-devel] [PATCH] SVM support]

2007-09-18 Thread Paul Brook
Ok, I will try to shift the intercepts in an uint_64 flags variable in the TB. OK, great. Having 64 bits may also help for additional (ie future...) features in PowerPC 64 emulation. Maybe worth letting the target say whether it needs 32 or 64-bit flags. The flag lookup is likely to be

[Qemu-devel] RFC: [0/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
Following this message, are the 11 parts of the patch that implements EFAULT detection in the linux-user mode. Hopefully, this reflects what was discussed following the first RFC of this patch. Also, hopefully, it is easier to digest in smaller pieces like this. In short, the (un)lock_user*()

[Qemu-devel] RFC: [1/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This first part contains the additions to the existing infrastructure needed to implement the new interfaces used in the rest of the patch. In exec.c, page_check_range() has been added to take an address and a size and and check to see if it is contained in a valid page that belongs to the

[Qemu-devel] RCF: [2/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
In this section, the functions for reading and writing fdsets, reading rusage, and reading and writing timevals have been updated to use the new kernel like interfaces. Also, places where these function have been used are adjusted to match, this includes do_select(), and the do_syscall() code

[Qemu-devel] RFC: [3/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part contains the changes to teh socket interfaces. This includes updates to the functions for reading and writing struct sockaddr, as well as updates and some fixes to do_setsockopt() and do_getsockopt(). The implementations of bind() connect(), accept(), getpeername() and getsockname()

[Qemu-devel] RFC: [4/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part contains the updates for the semaphore IPC syscalls. In addition to the changes to use the new APIs, there are also fixes for some of the semop() and semctl() actions. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network

[Qemu-devel] RFC: [5/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part contains the changes to the message queue IPC syscalls. The functions for reading and writing the msqid_ds structure have been updated to use the kernel-like APIs. Also, additional checking has been added to the implementations of msgsnd() and msgrecv().

[Qemu-devel] RFC: [6/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part contains the changes to write_ldt() to use the newer APIs. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network Software Engineering http://www.netsweng.com/ 1024D/37A79149:

[Qemu-devel] RFC: [7/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part updates do_fcntl() to use the new kernel-like APIs. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network Software Engineering http://www.netsweng.com/ 1024D/37A79149:

[Qemu-devel] RFC: [9/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
Thsi part updates stat(64)fs and fstat(64)fs implementations to use the new APIs in a more optimal manner. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network Software Engineering http://www.netsweng.com/

[Qemu-devel] RFC: [10/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
This part contains the rest of the updates to do_syscall() that contain the changes to the new API for several systcalls, including utime(), sigaction(), rt_sigaction(), rt_sigpending(), sigsuspend(), rt_sigtimedwait(), rt_sigqueueinfo(), stat() and stat64().

[Qemu-devel] RFC: [11/11] EFAULT patch

2007-09-18 Thread Stuart Anderson
Last, but not least, this part contains the changes to the function that read and write iovec structures. This part will require one more pass to eliminate the inner calls to the old API. Stuart Stuart R. Anderson [EMAIL PROTECTED]

Re: [Qemu-devel] RFC: [0/11] EFAULT patch

2007-09-18 Thread J. Mayer
On Tue, 2007-09-18 at 20:59 -0400, Stuart Anderson wrote: Following this message, are the 11 parts of the patch that implements EFAULT detection in the linux-user mode. Hopefully, this reflects what was discussed following the first RFC of this patch. Also, hopefully, it is easier to digest in

[Qemu-devel] qemu/target-ppc cpu.h op_helper_mem.h

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 04:34:09 Modified files: target-ppc : cpu.h op_helper_mem.h Log message: More PowerPC target cleanups: - remove unuseful historical macros and definitions - fix

[Qemu-devel] qemu/target-ppc helper.c

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 04:36:03 Modified files: target-ppc : helper.c Log message: Code provision for PowerPC 64 MMU model support. CVSWeb URLs:

[Qemu-devel] qemu/hw cuda.c

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 04:46:57 Modified files: hw : cuda.c Log message: Avoid Linux to stay stucked in an infinite loop when requesting a reboot. CVSWeb URLs:

[Qemu-devel] qemu/target-ppc helper.c op.c op_helper.c op_he...

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 05:44:04 Modified files: target-ppc : helper.c op.c op_helper.c op_helper.h translate.c Log message: Code provision for PowerPC BookE MMU model

[Qemu-devel] qemu cpu-exec.c

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 05:37:57 Modified files: . : cpu-exec.c Log message: Improve PowerPC target implementation, using computed hflags as TB flags. CVSWeb URLs:

[Qemu-devel] qemu monitor.c

2007-09-18 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer j_mayer 07/09/19 05:49:13 Modified files: . : monitor.c Log message: More PowerPC registers definitions. Avoid duplicating code and, as a side effect, fix missing bits in MSR.