[Qemu-devel] [PATCH][MIPS] Per-CPU instruction decoding implementation

2007-09-19 Thread Aurelien Jarno
Hi all, The patch below implements per-cpu decoding on the MIPS target. The supported instruction set is defined by a set of flags. It assumes that MIPS2 instructions are always supported. It also removes the check for CP0C0_AT when setting MIPS_HFLAG_64 as it is now obsolete. Cheers, Aurelien

Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces

2007-09-19 Thread Bradley Schatz
I am running a windows2k guest, which in turn is running coLinux. I wish to set a breakpoint in the linux instance. A windows driver loads, and builds the page tables of two independent virtual address spaces, and backs them with page frames allocated using the windows driver API. The two addreess

[Qemu-devel] Publicating with QEMU

2007-09-19 Thread Clemens Kolbitsch
Hi guys! Short question: I'm having a speech at BlackHat Japan in Oktober about something I made with qemu. Basically it is a new hardware type (so it is just an additional file in the hw-subdirectory) --- it's the wireless device I have been asking questions for a couple of months ago in case s

[Qemu-devel] [PATCH] Move likely()/unlikely() to exec-all.h

2007-09-19 Thread Aurelien Jarno
Hi all, The patch below moves likely()/unlikely() definitions to exec-all.h from target-alpha/cpu.h and target-ppc/cpu.h. This way they can be used on other targets. Bye, Aurelien Index: exec-all.h === RCS file: /sources/qemu/qemu/e

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

2007-09-19 Thread Stuart Anderson
On Wed, 19 Sep 2007, Paul Brook wrote: No. We're doing more than most 32-64 syscall thunks. To a first approximation the syscall thunks can bindly zero extend all values. In qemu we need to know whether something is a pointer or a value. Isn't that was the code in do_syscall() does? or am I lo

[Qemu-devel] MIPS FP rounding

2007-09-19 Thread Daniel Jacobowitz
Thiemo, in May you added this: -update_fcr31(); \ +update_fcr31(); \ +if (GET_FP_CAUSE(env->fcr31) & FP_INVALID)\ +FST2 = 0x7fbf;\ +else if (GET_FP_CAUSE(env->fcr31) & FP

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

2007-09-19 Thread Paul Brook
On Wednesday 19 September 2007, Stuart Anderson wrote: > On Wed, 19 Sep 2007, J. Mayer wrote: > > Then, the changes you've done, changing long arguments (which should be > > target_long to be correct, you can take a look at the last patch I sent > > on the list) to pointers, for example in function

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

2007-09-19 Thread J. Mayer
On Wed, 2007-09-19 at 15:00 -0400, Stuart Anderson wrote: > On Wed, 19 Sep 2007, J. Mayer wrote: > > > Then, the changes you've done, changing long arguments (which should be > > target_long to be correct, you can take a look at the last patch I sent > > on the list) to pointers, for example in fu

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

2007-09-19 Thread Stuart Anderson
On Wed, 19 Sep 2007, J. Mayer wrote: Then, the changes you've done, changing long arguments (which should be target_long to be correct, you can take a look at the last patch I sent on the list) to pointers, for example in function prototypes, are incorrect. I just went, and looked at the linux

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

2007-09-19 Thread J. Mayer
On Wed, 2007-09-19 at 16:35 +, Hollis Blanchard wrote: > On Wed, 19 Sep 2007 05:44:04 +, Jocelyn Mayer wrote: > > > CVSROOT:/sources/qemu > > Module name:qemu > > Changes by: Jocelyn Mayer 07/09/19 05:44:04 > > > > Modified files: > > target-ppc : helper.c op.c op_hel

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

2007-09-19 Thread J. Mayer
On Wed, 2007-09-19 at 16:35 +0100, Paul Brook wrote: > > > >> 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 l

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

2007-09-19 Thread Hollis Blanchard
On Wed, 19 Sep 2007 05:44:04 +, Jocelyn Mayer wrote: > CVSROOT: /sources/qemu > Module name: qemu > Changes by: Jocelyn 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:

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

2007-09-19 Thread Paul Brook
> > >> 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 on a hot path. > > > > > I may be wrong, but it seems

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

2007-09-19 Thread Paul Brook
On Wednesday 19 September 2007, Stuart Anderson wrote: > On Wed, 19 Sep 2007, J. Mayer wrote: > > The idea is great but there seem to be a problem in those patches: > > you directly cast syscall arguments, which are (or should be) > > target_ulong to pointers in the host environment. You should to

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Nigel Horne
Ronald wrote: Nigel Horne schreef: I don't see this on my systems. It looks like broken kernel headers. What host (OS version) do you use? Linux/x86 (F7) That should have read FC6, sorry. Thiemo -Nigel I think Thiemo also wants to know the kernel version. [EMAI

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

2007-09-19 Thread Alexander Graf
On Sep 19, 2007, at 4:39 PM, Jocelyn Mayer wrote: On Wed, 2007-09-19 at 12:56 +0200, Alexander Graf wrote: On Sep 19, 2007, at 1:28 AM, Paul Brook wrote: 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

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

2007-09-19 Thread Jocelyn Mayer
On Wed, 2007-09-19 at 12:56 +0200, Alexander Graf wrote: > On Sep 19, 2007, at 1:28 AM, Paul Brook wrote: > > 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

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Ronald
Nigel Horne schreef: I don't see this on my systems. It looks like broken kernel headers. What host (OS version) do you use? Linux/x86 (F7) Thiemo -Nigel I think Thiemo also wants to know the kernel version.

RE: [Qemu-devel] Mips guest

2007-09-19 Thread Nigel Horne
> I don't see this on my systems. It looks like broken kernel headers. > What host (OS version) do you use? Linux/x86 (F7) > > Thiemo > -Nigel

Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces

2007-09-19 Thread Daniel Jacobowitz
On Wed, Sep 19, 2007 at 10:28:00PM +1000, Bradley Schatz wrote: > I have breakpoints failing in the case where a breakpoint is set on a > virtual address in another virtual address space. The virtual address > is mapped to nothing in the current virtual address space. > > I would like breakpoints

[Qemu-devel] Re: [PATCH] linux-user fstatat syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the fstatat syscall to linux-user. To depends on the previous stat64_put_user patch. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:28:34.0 -0600 +++ qemu/linux-user/sysca

[Qemu-devel] Re: [PATCH] linux-user stat64_put_user function

2007-09-19 Thread Thayne Harbaugh
This patch puts stat64 functionality into a function rather than using gotos for all the locations that copy stat64 buffers to user space. This patch is necessary for following fstatat64 syscall patch. Index: qemu/linux-user/syscall.c

[Qemu-devel] Re: [PATCH] linux-user faccessat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the faccessat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:28:02.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:28:30.0 -0600 @@ -151,

[Qemu-devel] Re: [PATCH] linux-user fchmodat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the fchmodat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:27:29.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:28:02.0 -0600 @@ -151,6

[Qemu-devel] Re: [PATCH] linux-user readlinkat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the readlinkat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:26:51.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:27:29.0 -0600 @@ -160

[Qemu-devel] Re: [PATCH] linux-user symlinkat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the symlinkat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:25:51.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:26:51.0 -0600 @@ -162,

[Qemu-devel] Re: [PATCH] linux-user linkat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the linkat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:24:47.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:25:51.0 -0600 @@ -156,6 +

[Qemu-devel] Re: [PATCH] linux-user renameat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the renameat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:23:52.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:24:47.0 -0600 @@ -159,6

[Qemu-devel] Re: [PATCH] linux-user unlinkat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the unlinkat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:22:58.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:23:52.0 -0600 @@ -163,6

[Qemu-devel] Re: [PATCH] linux-user fchownat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the fchownat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:21:49.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:22:58.0 -0600 @@ -151,6

[Qemu-devel] Re: [PATCH] linux-user mknodat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the mknodat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:20:59.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:21:49.0 -0600 @@ -156,6

[Qemu-devel] Re: [PATCH] linux-user mkdirat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the mkdirat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:19:38.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:20:59.0 -0600 @@ -155,6

[Qemu-devel] Re: [PATCH] linux-user openat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the openat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:18:58.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:19:38.0 -0600 @@ -155,6 +

[Qemu-devel] gdbstub breakpoints not working across virtual address spaces

2007-09-19 Thread Bradley Schatz
I have breakpoints failing in the case where a breakpoint is set on a virtual address in another virtual address space. The virtual address is mapped to nothing in the current virtual address space. I would like breakpoints to arbitrarily apply across all virtual address spaces. My initial invest

[Qemu-devel] Re: [PATCH] linux-user futimesat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the futimesat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:17:45.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:18:58.0 -0600 @@ -151

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Thiemo Seufer
Nigel Horne wrote: > I suddenly remembered I'd forgotten to do a "make clean" after my last > checkout (oops). > > So I did that, and got this compilation error: > > ... > In file included from /home/njh/src/qemu/linux-user/syscall.c:4040: > /home/njh/src/qemu/linux-user/syscall.c: In function `do

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Nigel Horne
I suddenly remembered I'd forgotten to do a "make clean" after my last checkout (oops). So I did that, and got this compilation error: ... In file included from /home/njh/src/qemu/linux-user/syscall.c:4040: /home/njh/src/qemu/linux-user/syscall.c: In function `do_syscall': /usr/include/bits/uni

[Qemu-devel] Re: [PATCH] linux-user utimensat() syscall

2007-09-19 Thread Thayne Harbaugh
This patch adds the utimensat syscall to linux-user. Index: qemu/linux-user/syscall.c === --- qemu.orig/linux-user/syscall.c 2007-09-19 06:16:40.0 -0600 +++ qemu/linux-user/syscall.c 2007-09-19 06:17:45.0 -0600 @@ -158,

[Qemu-devel] [PATCH] linux-user *at() syscalls

2007-09-19 Thread Thayne Harbaugh
I have a series of patches to add *at() syscalls to linux-user. The patches have minor inter-dependencies due to adjacent modifications in some files.

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

2007-09-19 Thread Stuart Anderson
On Wed, 19 Sep 2007, J. Mayer wrote: The idea is great but there seem to be a problem in those patches: you directly cast syscall arguments, which are (or should be) target_ulong to pointers in the host environment. You should to use the g2h / h2g macros to get the pointer in the host memory fro

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

2007-09-19 Thread Alexander Graf
flags64.patch Description: Binary data On Sep 19, 2007, at 1:28 AM, Paul Brook wrote: 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

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

2007-09-19 Thread Alexander Graf
On Sep 19, 2007, at 1:28 AM, Paul Brook wrote: 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-

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Thiemo Seufer
Nigel Horne wrote: > The latest CVS snapshot has broken MIPS emulation. > > Guest: MIPS debian linux > Host: Fedora 7/x86 > > The guest boots as far as > > CPU revision is: 00019300 > FPU revision is: 00739300 > Determined physical RAM map: > memory: 0400 @ (usable) > Initial ramdisk a

Re: [Qemu-devel] Mips guest

2007-09-19 Thread Johannes Schindelin
Hi, On Wed, 19 Sep 2007, Nigel Horne wrote: > The latest CVS snapshot has broken MIPS emulation. > > [...] > > Then it hangs. > > The last time I tried this guest was a couple of weeks ago, or so, and > all was fine then. It would be so good if you could bisect this. If you have git, clone q

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

2007-09-19 Thread Jocelyn Mayer
On Wed, 2007-09-19 at 10:07 +0100, Thiemo Seufer wrote: > J. Mayer wrote: > > 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_

[Qemu-devel] Mips guest

2007-09-19 Thread Nigel Horne
The latest CVS snapshot has broken MIPS emulation. Guest: MIPS debian linux Host: Fedora 7/x86 The guest boots as far as CPU revision is: 00019300 FPU revision is: 00739300 Determined physical RAM map: memory: 0400 @ (usable) Initial ramdisk at: 0x802d7000 (2897359 bytes) Built 1 z

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

2007-09-19 Thread Thiemo Seufer
J. Mayer wrote: > 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 als