Re: [Qemu-devel] [PATCH] ARM syscall numbers

2007-03-29 Thread Kirill A. Shutemov
On [Fri, 23.03.2007 17:08], Kirill A. Shutemov wrote: Series of patches to sync syscall_nr.h with linux kernel 2.6.21-rc4 in the attachment. syscall_cleanup.patch: - fixed building with new syscall_nr.h - dropped case TARGET_NR_XXX: goto unimplemented; - droppend unneeded #ifdef

[Qemu-devel] Qemu memory management

2007-03-29 Thread Michael Neubauer
Hello, I'm trying to learn a bit more about the Qemu SoftMMU. The following quotation is taken from section 2.10 of the Qemu Internals documentation. To avoid flushing the translated code each time the MMU mappings change, QEMU uses a physically indexed translation cache. It means that each TB

[Qemu-devel] PowerPC: Doesn't boot OS 8.5

2007-03-29 Thread C.W. Betts
When I tried to boot from the Mac OS 8.5.1 CD using the -M g3bw command, the firmware says: Found Apple Partition map... Not a bootable partition 0 0 (0 5834d80) Partition: 8 'Macintosh HD' 'Apple_HFS' st 3c4 size 113000 HFS volume ERROR: Found boot partition : 5834d80 582eb80 ERROR: Not a

[Qemu-devel] qemu-ppc doesn't like local CDs

2007-03-29 Thread C.W. Betts
Whenever I have tried to use the local CDs, qemu-system-ppc hangs. I am using XP home with the qemu cvs, but the problem isn't just there. This isn't a problem with the i386 version.

[Qemu-devel] Clock runs at double speed in guest

2007-03-29 Thread Thomas Tuttle
Hi. I have a 64-bit dual-core (Core 2 Duo) laptop, and I'm trying to install Gentoo AMD64 on a Qemu virtual machine. The system clock runs at double speed. If I run `date' in a tight loop, I can see it ticking off two seconds for every one second of real time. The hardware clock does not run at

Re: [Qemu-devel] Qemu memory management

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 11:58:33AM +0200, Michael Neubauer wrote: To avoid flushing the translated code each time the MMU mappings change, QEMU uses a physically indexed translation cache. It means that each TB is indexed with its physical address. Why does a cache like that prevent the

[Qemu-devel] QEMU Alpha target

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 12:55:54PM +0200, Thomas Orgis wrote: hm, would qemu/kqemu work to run Tru64 accelerated in a vm on alpha?;-). :-) There do seem to be a few people who'd like Alpha emulation for QEMU. Obviously, you'd want to get dynamic translation working first. :-) OTOH, I'm now

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread Paul Brook
There do seem to be a few people who'd like Alpha emulation for QEMU. Obviously, you'd want to get dynamic translation working first. :-) OTOH, I'm now wondering which archs can support full virtualisation. Depends how you define full virtualization. If you call kqemu full virtualization

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 04:08:25PM +0100, Paul Brook wrote: There do seem to be a few people who'd like Alpha emulation for QEMU. Obviously, you'd want to get dynamic translation working first. :-) OTOH, I'm now wondering which archs can support full virtualisation. Depends how you

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread Paul Brook
On Thursday 29 March 2007 16:12, Stuart Brady wrote: On Thu, Mar 29, 2007 at 04:08:25PM +0100, Paul Brook wrote: There do seem to be a few people who'd like Alpha emulation for QEMU. Obviously, you'd want to get dynamic translation working first. :-) OTOH, I'm now wondering which

Re: [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2 etc.; was: Latest SVN fails to build on Fedora Core 6 (same with 0.9.0)

2007-03-29 Thread Sunil Amitkumar Janki
Thomas Orgis wrote: Sure, 32bit is vanishing from new hardware sales. You can hardly buy a 32-bit AMD chip anymore and I wouldn't buy a 32-bit Intel chip when you can get a 64-bit AMD for the same price or less. So for me, 32 bits are the state-of-the art, apart from my two machines

[Qemu-devel] Patch: PIC-i8259 does not work in single mode

2007-03-29 Thread Bernhard Kauer
The PIC-i8259 does not work in single mode, where only the master PIC is used. The attached patch fixes the initialization part for single mode. Bernhard Kauer Index: i8259.c === RCS file: /sources/qemu/qemu/hw/i8259.c,v

Re: [Qemu-devel] [RFC/experimental patch] qemu (x86_64 on x86_64 -no-kqemu) compiles with gcc4 and works

2007-03-29 Thread Anthony Liguori
Axel Zeuner wrote: Hi Anthony, On Thursday 29 March 2007 04:07, you wrote: Axel Zeuner wrote: Hi Anthony, On Monday 26 March 2007 01:44, you wrote: Axel Zeuner wrote: On Saturday 24 March 2007 21:15, Anthony Liguori wrote: The tricky thing I still can't

Re: [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2 etc.; was: Latest SVN fails to build on Fedora Core 6 (same with 0.9.0)

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 05:25:47PM +0200, Sunil Amitkumar Janki wrote: About the Alphas, it would be great to run Tru64 on them or for the occasional OpenVMS session. I'm looking forward to implementing an Alpha target even though I've never seen or used them. You must be very lucky to have

Re: [Qemu-devel] QEMU only support USB endpoint 02(output)and 81(input)?

2007-03-29 Thread Shaddy Baddah
Hi, On 3/29/2007 2:52 PM, Yu, Xiaoyang wrote: I used QEMU 0.9.0 to do the testing. All the seven USB disks can work properly in host OS (Linux 2.6), so the USB devices and its interaction with the kernel drivers should be okay. So the problem must be in QEMU USB code. As far as I know, QEMU

[Qemu-devel] Re: Powerpc crt1.S change faulty

2007-03-29 Thread Rob Landley
On Thursday 29 March 2007 4:05 am, Joakim Tjernlund wrote: Hi Rob I saw your change to powerpc crt1.S and I don't agree with it. mr r8,r3 copies r3 to r8 r8 needs to maps to rtld_fini in __uClibc_main and that maps to _dl_fini. Basically you have broken dynamic apps. Sigh. Ok. What does

[Qemu-devel] Re: PC traces from QEMU

2007-03-29 Thread Antti P Miettinen
Shashidhar Mysore [EMAIL PROTECTED] writes: I intend to extract program counter streams from QEMU as a program executes. Can you please point me to the hooks that I may have to insert into the QEMU source code in order to extract the PC values? I used to do that with qemu 0.7. I did not dig

Re: [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2 etc.; was: Latest SVN fails to build on Fedora Core 6 (same with 0.9.0)

2007-03-29 Thread J. Mayer
On Thu, 2007-03-29 at 17:08 +0100, Stuart Brady wrote: On Thu, Mar 29, 2007 at 05:25:47PM +0200, Sunil Amitkumar Janki wrote: About the Alphas, it would be great to run Tru64 on them or for the occasional OpenVMS session. I'm looking forward to implementing an Alpha target even though

Re: [Qemu-devel] PowerPC: Doesn't boot OS 8.5

2007-03-29 Thread J. Mayer
On Wed, 2007-03-28 at 16:44 -0600, C.W. Betts wrote: When I tried to boot from the Mac OS 8.5.1 CD using the -M g3bw command, the firmware says: Found Apple Partition map... Not a bootable partition 0 0 (0 5834d80) Partition: 8 'Macintosh HD' 'Apple_HFS' st 3c4 size 113000 HFS volume

Re: [Qemu-devel] Re: PC traces from QEMU

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 08:29:03PM +0300, Antti P Miettinen wrote: Shashidhar Mysore [EMAIL PROTECTED] writes: I intend to extract program counter streams from QEMU as a program executes. Can you please point me to the hooks that I may have to insert into the QEMU source code in order to

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread J. Mayer
On Thu, 2007-03-29 at 16:25 +0100, Paul Brook wrote: On Thursday 29 March 2007 16:12, Stuart Brady wrote: On Thu, Mar 29, 2007 at 04:08:25PM +0100, Paul Brook wrote: There do seem to be a few people who'd like Alpha emulation for QEMU. Obviously, you'd want to get dynamic translation

[Qemu-devel] QEMU Alpha target

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 09:57:08PM +0200, J. Mayer wrote: If you are interressed to this target, you may like this: I did, for fun, a preliminary version of the alpha CPU emulation. For now, it implements most of the CPU instructions and should be able to achieve user mode emulation after a

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread J. Mayer
On Thu, 2007-03-29 at 22:18 +0100, Stuart Brady wrote: On Thu, Mar 29, 2007 at 09:57:08PM +0200, J. Mayer wrote: If you are interressed to this target, you may like this: I did, for fun, a preliminary version of the alpha CPU emulation. For now, it implements most of the CPU instructions

[Qemu-devel] patch for PC target - OHCI use

2007-03-29 Thread Michal Schulz
Hello. I've made small patch for qemu, which adds a new command line option - the -ohci. It instructs qemu that the OHCI controller should be emulated instead of the default UHCI. What do you think about it? -- Michal Schulz diff -Naur qemu-0.9.0/hw/pc.c qemu-0.9.0-ohci-patch/hw/pc.c ---

[Qemu-devel] RE: Powerpc crt1.S change faulty

2007-03-29 Thread Joakim Tjernlund
-Original Message- From: Rob Landley [mailto:[EMAIL PROTECTED] Sent: den 29 mars 2007 18:53 To: [EMAIL PROTECTED] Cc: uclibc@uclibc.org; qemu-devel@nongnu.org Subject: Re: Powerpc crt1.S change faulty On Thursday 29 March 2007 4:05 am, Joakim Tjernlund wrote: Hi Rob I

Re: [Qemu-devel] Re: PC traces from QEMU

2007-03-29 Thread andrzej zaborowski
On 29/03/07, Stuart Brady [EMAIL PROTECTED] wrote: On Thu, Mar 29, 2007 at 08:29:03PM +0300, Antti P Miettinen wrote: Shashidhar Mysore [EMAIL PROTECTED] writes: I intend to extract program counter streams from QEMU as a program executes. Can you please point me to the hooks that I may have

[Qemu-devel] qemu, ecos, arm--anybody doing this?

2007-03-29 Thread Mike Dorin
Anybody doing any work with ecos on the arm processor using qemu? I would like to. I would sure appreciate any tips. -Mike Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo!

Re: [Qemu-devel] Re: PC traces from QEMU

2007-03-29 Thread Shashidhar Mysore
Hi Antti, Thanks for the reply. Honestly, I am new to QEMU, hence I just tried following the steps you had mentioned to extract PCs without actually knowing what each of those mean. As you had said, - I defined DEBUG_EXEC in cpu-exec.c - I disabled USE_DIRECT_JUMP in exec-all.h - I disabled

RE: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Ramesh Dharan
Hi Anthony, sorry for the delayed response to your delayed response. I actually haven't been working much on the remote display stuff in a while, though it's something I'm hoping to get involved with again time permitting. I'm cc'ing Dustin Byford and Johnson Liu, VMware engineers who handle a

Re: [Qemu-devel] Re: PC traces from QEMU

2007-03-29 Thread Shashidhar Mysore
Hi Stuart, Thanks for the reply, but since I'm a little new to qemu, can you please elaborate on how to insert the op_dump_pc function to extract the PC values? Thanks, -Shashi. On 3/29/07, Stuart Brady [EMAIL PROTECTED] wrote: On Thu, Mar 29, 2007 at 08:29:03PM +0300, Antti P Miettinen

[Qemu-devel] [PATCH] semaphore syscalls - refresh

2007-03-29 Thread Stuart Anderson
This is a refresh of a prior patch to fix the semaphore system calls sem*() in user-linux mode. Some additional cases have been dealt with, and a small amount of code re-arrainging to prepare for the EFAULT patch. Tested using Linux Test Project in the target.

[Qemu-devel] [PATCH] message queue fixes - refresh

2007-03-29 Thread Stuart Anderson
Here is a refresh of the message queue syscall (msg*()) fixes. These are analgous to the just posted sempahore fixes. Tested with LTP on the target. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network Software Engineering

[Qemu-devel] no meta key?

2007-03-29 Thread C.W. Betts
When I was trying to get the PowerPC qemu to go into open Firmware mode, I tried to send the command key (not the control key), but I couldn't find any key that resembles it in the built-in sendkey command. There was no meta or Windows key in the autocomplete function of sendkey (as well as a

[Qemu-devel] [PATCH] clone syscall fix

2007-03-29 Thread Stuart Anderson
Even though clone() and fork() are related, they don't seem to be close enough to allow a single routine to be used to implement both. With this patch, the LTP tests for clone now pass. It may be possible to fold this back into do_fork(), but this just seemed to be a little bit more

[Qemu-devel] [PATCH] signal syscall fixes

2007-03-29 Thread Stuart Anderson
This patch fixes a couple of problems with signals(). The first fix, in cpu-exec.c, is needed for the case where a process does a kill(SIGSEGV) on itself (as is done in a test suite). This fix for ARM is similar to what is done for some of the other architectures. I'm not 100% certain this is

[Qemu-devel] [PATCH] EFAULT refresh

2007-03-29 Thread Stuart Anderson
Here is a refresh of the EFAULT patch. This fixes a lot of crashes in LTP, and presumably in regular applications too. This still needs to have the checking foldded into lock_user(), but there were a handful of small fixes since this patch was last sent out.

Re: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Anthony Liguori
Ramesh Dharan wrote: Anthony, I have a detailed response to your earlier e-mail but I wanted to handle this discussion separately. I implemented new client-server messages for the (1) and (2), and I should have read more carefully. This means that you're not a compliant RFB server

RE: [Qemu-devel] QEMU only support USBendpoint 02(output)and 81(input)?

2007-03-29 Thread Yu, Xiaoyang
Shaddy, Thanks for your help. I used info usbhost command to find the plugged USB disks and used usb_add command to add USB disks to the guest OS. For debugging purpose, I edited hw/usb-uhci.c to enable #define DEBUG_PACKET and logged UHCI packet information into log files. Please kindly

Re: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Anthony Liguori
Ramesh Dharan wrote: Hi Anthony, sorry for the delayed response to your delayed response. No problem. I actually haven't been working much on the remote display stuff in a while, though it's something I'm hoping to get involved with again time permitting. I'm cc'ing Dustin Byford and

RE: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Ramesh Dharan
The proper way to use new client message types (which is now described in the RFB spec) is to advertise a new pseudo-encoding for that client message type and wait for the server to send the pseudo-encoding back to the client. That lets the client know that it is safe to use the new

Re: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Anthony Liguori
Ramesh Dharan wrote: The proper way to use new client message types (which is now described in the RFB spec) is to advertise a new pseudo-encoding for that client message type and wait for the server to send the pseudo-encoding back to the client. That lets the client know that it is safe

RE: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding

2007-03-29 Thread Ramesh Dharan
To do it in general? Yeah, I don't think there's a solution. Of course, a SetServerEncodings would introduce a race. What does the server do if it receives one of the new special client messages after sending the SetServerEncodings message (but before the client receives the