[Qemu-devel] [NEWBYE] Adding a hardware module

2006-06-07 Thread Alessandro Corradi
Hi to everybody, I'm starting to study qemu for degree's thesis. I need to implement a simple hardware module such as serial or parallel port. Can you tell me where I can get documentation about it or source code to start? Now I'm looking at serial.c and parallel.c but I don't know if it's the

[Qemu-devel] Creating a simple

2006-06-12 Thread Alessandro Corradi
Hi all, I'm trying to write a simple virtual hardware for QEMU. This hw must only return the value 0 every time I read at 0x6f8 address. It looks like simple but I'm not sure... this is what I do... I wrote a file in hw dir called hwfitt.c and implements hwfitt_ioport_read and *hwfitt_init

[Qemu-devel] mips target

2006-06-12 Thread Alessandro Corradi
Hi, I need to start qemu with mips target, and I'm building a linux image for mips. But when I try: qemu-system-mips myimage.img I get this : mips_r4k_init: load BIOS '/usr/local/share/qemu/mips_bios.bin' size 131072 qemu: fatal: Trying to execute code outside RAM or ROM at 0xbfc2

Re: [Qemu-devel] MIPS emulation?

2006-06-13 Thread Alessandro Corradi
On Sat, Jan 14, 2006 at 07:34:36PM +0100, Tomasz Chmielewski wrote: (A) You have to build a qemu-specific kernel to use the MIPS QEMU. And how to build qemu-specific MIPS kernel? Is it just a kernel built for MIPS, or perhaps some qemu-specific patches have to be applied?You have to select

[Qemu-devel] SystemC hw simulation in qemu

2006-06-18 Thread Alessandro Corradi
Hi all,I've tried to create my simple hw and it's ok. Now my teacher tells me that i must use a hw description written in SystemC and plug in Qemu.Have you got any idea to do it? Can somebody link me to documents where I can find info? ___ Qemu-devel

Re: [Qemu-devel] SystemC hw simulation in qemu

2006-06-28 Thread Alessandro Corradi
2006/6/20, Fabrice Bellard [EMAIL PROTECTED]: Alessandro Corradi wrote: Hi all, I've tried to create my simple hw and it's ok. Now my teacher tells me that i must use a hw description written in SystemC and plug in Qemu. Have you got any idea to do it? Can somebody link me to documents where I

[Qemu-devel] Question about qemu io addressing

2006-06-30 Thread Alessandro Corradi
Hi all,Is it possible to use an hardware in memory address space instead of use io-address in i386 emulation? And if it is possible, how it influence emulation speed?ThanksAle ___ Qemu-devel mailing list Qemu-devel@nongnu.org

[Qemu-devel] devices and memory address

2006-07-03 Thread Alessandro Corradi
Hi all,Is it possible to reserve memory addresses in i386 qemu emulation for recognize them as device registers?ThanksAlessandro ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

[Qemu-devel] qemu irq

2006-07-14 Thread Alessandro Corradi
Hi all,pease can somebody tell me how qemu intercept irq generated by virtual device? Or tell me where I can start to look at?ThanksAle ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

[Qemu-devel] Hardware interrupts

2006-07-17 Thread Alessandro Corradi
Hi all,In http://fabrice.bellard.free.fr/qemu/qemu-tech.html: In order to be faster, QEMU does not check at every basic block if an hardware interrupt is pending. Instead, the user must asynchrously call a specific function to tell that an interrupt is pending. This function resets the

[Qemu-devel] More about i386 mmu

2006-08-01 Thread Alessandro Corradi
Hi all,Can I have some additional info regarding mmu emulation in i386? In particular, in tech doc is written that qemu uses mmap system call to emulate cpu mmu, can you help me to understand this point? For instance, how it translate virtual address in io address and access to emulated devices?

[Qemu-devel] Network problem

2006-08-12 Thread Alessandro Corradi
Hi all,I tryed to use tap with qemu / debian os guest. This get the following error:eth0: error while getting interface flags: no such deviceqemu-ifup is this:#!/bin/shsudo /sbin/ifconfig $1 10.0.0.1and tap interface in host is up.The command line is:qemu -net tap ~/qemu/deb.imgWhat's

Re: [Qemu-devel] trace an incoming network packet of data ?

2006-08-16 Thread Alessandro Corradi
Hi, I am interesting to understand qemu network manage too. I search and find this document: http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html Look if it can help you (I read it very fast but I think it's very interesting). 2006/8/14, S. P. T. Krishnan [EMAIL PROTECTED]: Hi,I would like to

[Qemu-devel] writing a cosimulated network for QEMU

2006-08-21 Thread Alessandro Corradi
Hi all,my project is to write a simulated network card. It will comunicate with a SystemC emulated device, a cirrus logic cs8900a. The logical scheme is circa as it:QEMU -- WRITTEN DEVICE -- socket -- SystemC description of the cirrus. The connection between the qemu device and the cirrus is via

[Qemu-devel] Fwd: Cosimulation

2006-08-22 Thread Alessandro Corradi
Hi Nicolas,Thank you for reply! The only trouble is that I need to descrive it as a pci device. Taking the parallel port as an example is very usefull for simple hardware as you made. But I need some info for write my device into qemu, in particular the init function for pci device as the ne2000

[Qemu-devel] Re: Cosimulation

2006-08-24 Thread Alessandro Corradi
Hi nicolas, Thank you very much for your reply. In attachment you find the sc dscription of the cirrus logic, The problem is that it is implement with a different version of SystemC built by my university. In fact the card description isn't a problem for me. This description concern the emulation

[Qemu-devel] Kqemu issue

2006-09-03 Thread Alessandro Corradi
Hi all,I use Debian host os with debian guest os. The problem is that I must to reinstall kqemu every time I boot my host system.When I try to load qemu it tells me that it can't open kqemu (first I load kqemu with modprobe naturallyand it is ok), I chmod 777 /dev/kqemu and it tells me that there

[Qemu-devel] Best way to get real performance info?

2006-09-06 Thread Alessandro Corradi
Hi all, I need to measure the performance of a host OS, a guest OS with and without kqemu. I particular I need to have performance info about CPU. I made a simple C program that makes only arithmetical operations and long cycles. I run time ./myapp but the results are not the real ones. Can

[Qemu-devel] Socket conflict with qemu?

2006-09-10 Thread Alessandro Corradi
Hi all,I write a new device that is connect via socket to a host program that emulate a small memory.I can correctly write in this memory but sometimes, when I want to read, the recv() socket function give me an error (-1 return). Do you know if there is a socket problem with qemu? Because I tried

[Qemu-devel] Added new device: Interrupted system call

2006-09-12 Thread Alessandro Corradi
Hi, I wrote a device that is connect to a host program for data exchange via socket. The problem is that qemu do something and block the socket system call. If I capture the perror it return (in the host): Interrupted system call So there should be something in qemu that delete the system call.

[Qemu-devel] A question about QEMU performance

2006-09-26 Thread Alessandro Corradi
Hi all,This is my question:If I run qemu for i386 without kqemu it uses soft-mmu, so it operates as another architetture as ppc or mips right?So... are the performace of qemu the same if I use i386 or mips or something change deeply? Example: if I run the same program on i386 emulation without

[Qemu-devel] Interrupt request info

2006-10-28 Thread Alessandro Corradi
Hello,Can someone give me detailed information (or a link where it is described) how qemu manage hw interrupts?I can't find any usefull info about it in QEMU doc.For example, how does work Interrupts for the parallel port? (I see in the code that it is the easier device to understand how qemu

Fwd: [Qemu-devel] Interrupt request info

2006-11-01 Thread Alessandro Corradi
-- Forwarded message --From: Alessandro Corradi [EMAIL PROTECTED]Date: 31-ott-2006 10.25Subject: Re: [Qemu-devel] Interrupt request infoTo: Rob Landley [EMAIL PROTECTED]I already read this, but give no usefull information... and I searched everywhere in the web... For example, I

Re: [Qemu-devel] Interrupt request info

2006-11-04 Thread Alessandro Corradi
Thank you very much for the answer,so the only think to do to raise correctly an interrupt (I think) is only to raise it when a read funciton is completed (in case of my simple memory) because it will alarm the process in waiting status to read the value in the register. the workaround of a read

Fwd: [Qemu-devel] Interrupt request info

2006-11-06 Thread Alessandro Corradi
-- Forwarded message --From: Alessandro Corradi [EMAIL PROTECTED]Date: 4-nov-2006 17.08Subject: Re: [Qemu-devel] Interrupt request infoTo: qemu-devel@nongnu.orgThank you very much for the answer,so the only think to do to raise correctly an interrupt (I think) is only to raise

Re: [Qemu-devel] Interrupt request info

2006-11-11 Thread Alessandro Corradi
Thank you very much, But I don't understand what the first parameter is on pic_set_irq_new... I tried anyway to implement my hw with pic_set_irq, but in qemu console I didn't see my irq (13) with info irq. I tried to raise it: pic_set_irq(s-irq,1); What I need to do to raise irq correctly with

Re: [Qemu-devel] Interrupt request info

2006-11-12 Thread Alessandro Corradi
I tried with both pic_set_irq and pic_set_irq_new but nothing happen (the irq number is 13 and I verified with info irq in qemu monitor). I tried also to hack i8259.c and the function is not called (I think). What the first parameter of pic_set_irq_new is referred to? Another question: why a new