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 Se

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 t

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 th

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 Johns

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 kin

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

[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. Stua

[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 th

[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 straightforw

[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 m

[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

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

2007-03-29 Thread C.W. Betts
The reason why I posted this is because Mac OS 8.5 (maybe 8.1, I don't know...) has a CHRP bootloader in a file called "Mac OS Rom" that's kept in the System Folder. It is used to boot New World ROM Macs that don't have the old ROM code, which mostly has pre-OS X calls like QuickDraw. This of

[Qemu-devel] [PATCH] fcntl() remaining fix

2007-03-29 Thread Stuart Anderson
There is still one bit left after the last fcntl() fix went in. For TARGET_F_GETLK and TARGET_F_GETLK64, the structure being passed *in* needs to be mapped from target to host. Stuart Stuart R. Anderson [EMAIL PROTECTED] Network & S

[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. S

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 wr

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 lot

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 USE_

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

2007-03-29 Thread Ramesh Dharan
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 ATM. I'm not sure I f

Re: [Qemu-devel] M&A Talk: QEMU & GXEMUL

2007-03-29 Thread Thiemo Seufer
Jonathan Kalbfeld wrote: > GXemul is a fantastic emulator that has great PPC & MIPS emulation. > > Has there been any talk about QEMU acquiring all of the voting stock of > GXEMUL? (sorry, MBA school talking) Obviously I am speaking > metaphorically. This is my s3kr1t evil plan, but be warned t

[Qemu-devel] M&A Talk: QEMU & GXEMUL

2007-03-29 Thread Jonathan Kalbfeld
GXemul is a fantastic emulator that has great PPC & MIPS emulation. Has there been any talk about QEMU acquiring all of the voting stock of GXEMUL? (sorry, MBA school talking) Obviously I am speaking metaphorically. Also with 1.00 on the horizon, does anyone suspect we'll be able to boot Solar

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread Stuart Brady
On Thu, Mar 29, 2007 at 11:31:14PM +0200, J. Mayer wrote: > I did not provide the code because I will not maintain and go on > developping it. And I don't want to add orphean code in the Qemu > repository. But if there is some people ready to work on it, I can do > it. It already helped me find so

[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! Auto

Re: [Qemu-devel] QEMU Alpha target

2007-03-29 Thread Thomas Orgis
Well, since I am someone in the lucky position of having alpha hardware in use I can offer to test stuff. I saved two boxen basically from the dumpster, one of which being my primary workstation and the other open for other experiments, even. I don't have time, especially now, but in a month or two

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

[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 --- qem

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 instructi

[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

[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

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 tran

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 o

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 Brian Wheeler
For a somewhat complete alpha emulator, there's es40 on sourceforge. It doesn't actually boot an OS yet, but its getting closer. The firmware comes up and but it hangs on OS initialization. http://sourceforge.net/projects/es40/ Brian On Thu, 2007-03-29 at 21:57 +0200, J. Mayer wrote: > On

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 volum

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 tho

[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

[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

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 do

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 hav

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 f

[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 retrievin

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 at

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 wonderin

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

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 virtualizatio

[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 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 t

[Qemu-devel] QEMU and KQEMU on Windows Vista

2007-03-29 Thread Cam
I tested out QEMU on my Windows Vista Laptop and it worked fine by itself. When I installed KQEMU, QEMU became unstable. My laptop is a Dell Inspiron B120 with 512 MB of memory running QEMU 0.9.0 and I tested KQEMU 1.3.0 Pre11.

[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

[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] 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 MACH-O

[Qemu-devel] Tiny compliance bug in `block-vvfat.c'

2007-03-29 Thread Thomas Schwinge
[I'm not subscribed to the mailing list, so please keep me cced.] Hello! We kept wondering why the GNU/Hurd's `fatfs' translator (think Unix kernel file system driver) didn't want to ``eat'' the QEMU vvfat on-the-fly served floppy images (created from a directory structure using ``-fdb fat:flopp

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 Thomas Orgis
Am Wed, 28 Mar 2007 15:56:59 -0400 schrieb Rob Landley <[EMAIL PROTECTED]>: > On Saturday 24 March 2007 8:32 am, Sunil Amitkumar Janki wrote: > > Anyhow, I expect 32-bit hardware to gradually die because of wear and > > tear in the next few years and the replacement will be 64-bit hardware so >

[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

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 unneede