Re: [Qemu-devel] OUT_ASM on two different systems

2016-07-18 Thread Ayaz Akram
=0B48wPA1x1eizM3JIM0I1Z0hiNkpBREttMGxYOUI2NE1GRHEw On Mon, Jul 18, 2016 at 2:51 PM, Ayaz Akram <aaq...@gmail.com> wrote: > Attached are two trace files (out_asm log) for the same program using same > qemu binaries on two different systems . > > > > > > On Sun, Jul 17, 2016 at 3:25 AM, Paolo Bonzini

[Qemu-devel] OUT_ASM on two different systems

2016-07-16 Thread Ayaz Akram
Hi all ! I ran a program with qemu in user mode emulation and generated trace for generated host instructions using (-d OUT_ASM) on two different linux systems.I expected that the addresses in two trace files can be different. But the total number of lines in two files is different as well. I

Re: [Qemu-devel] Executed Host Instructions

2016-06-29 Thread Ayaz Akram
c.edu> wrote: > > Ayaz Akram writes: > > > >> Hi All, > >> I want to count number of host instructions (only for guest code) > executed > >> when qemu emulates an application. I wonder if helper functions are > >> supported with tcg back end

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Ayaz Akram
June 2016 at 16:24, Ayaz Akram <aaq...@gmail.com> wrote: > > Thanks for your replies. > > > > I am bit confused about -d exec logging. If I am not mistaken it logs the > > starting addresses of translation blocks that get executed. How will > > translation block chai

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Ayaz Akram
(by -d out_asm logging) and -d exec logging, how will the total count of instructions include effect of tb chaining ? Thanks ! On Tue, Jun 28, 2016 at 7:17 AM, Peter Maydell <peter.mayd...@linaro.org> wrote: > On 28 June 2016 at 11:50, LluĂ­s Vilanova <vilan...@ac.upc.edu> wrote: > &

[Qemu-devel] Executed Host Instructions

2016-06-27 Thread Ayaz Akram
Hi All, I want to count number of host instructions (only for guest code) executed when qemu emulates an application. I wonder if helper functions are supported with tcg back end as well, which can be a possible solution for the mentioned problem ? If not, is there any other solution in someone's

[Qemu-devel] Executed instruction count on host for translated code

2015-11-06 Thread Ayaz Akram
Hello, all ! I want to find out the number of executed translated instructions on the host system, for certain user mode programs. For that purpose, I am using hardware performance counters. I start them right before calling function tcg_qemu_tb_exec ( ), and stop them when function is returned.

Re: [Qemu-devel] QEMU to generate host binary

2015-06-29 Thread Ayaz Akram
AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Jun 28, 2015 at 07:29:39PM -0400, Ayaz Akram wrote: Let's say qemu is running in System Emulation Mode, when it runs guest's System emulation makes the problem even harder, as a system mode binary (usually an OS or some sort) will have

Re: [Qemu-devel] QEMU to generate host binary

2015-06-28 Thread Ayaz Akram
:34 PM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Fri, Jun 26, 2015 at 12:33 PM, Ayaz Akram aaq...@gmail.com wrote: Hello ! Is anyone aware of an effort to produce an executable binary for host using qemu. I mean is it possible that qemu generate a binary for whatever

[Qemu-devel] QEMU to generate host binary

2015-06-26 Thread Ayaz Akram
Hello ! Is anyone aware of an effort to produce an executable binary for host using qemu. I mean is it possible that qemu generate a binary for whatever application it is emulating, which can later be run directly on host? Thanks

[Qemu-devel] QEMU's performance

2014-10-21 Thread Ayaz Akram
Hi, I have added support for MIPS64 based octeon linux in QEMU, and now I want to compare performance of this emulated system with real system( cavium networks octeon board). I have run benchmarks like lmbench. I need to know what will be the most appropriate benchmarks to compare performance or

[Qemu-devel] Clock Emulation

2014-06-24 Thread Ayaz Akram
Can anyone help me out in finding how does QEMU provide emulated clock to guest operating system.. For instance, how does it increment x86's time stamp counter register??

[Qemu-devel] Bridge iface not replying to ping requests

2014-06-05 Thread Ayaz Akram
For the background I am trying to make networking work on Octeon Linux guest(run on QEMU) and using e1000 ethernet iface for this purpose. At the moment if I ping bridge iface (running command on guest), bridge iface receives ICMP echo request message but does not reply(I have observed using

[Qemu-devel] DMA and e1000 networking driver

2014-05-20 Thread Ayaz Akram
Can e1000 driver in linux be used without DMA involvement? Actually I am trying to use e1000 network driver on octeon linux( to be run on QEMU), and I have not emulated any DMA controller, so I was wondering if I can be able to run networking without DMA's involvement?

[Qemu-devel] E1000 emulation in qemu and pci configuration space

2014-05-05 Thread Ayaz Akram
Does e1000's emulation in QEMU require that the guest set its base address register(pci configuration space register) or qemu has default value for its base address register?

[Qemu-devel] E1000 emulation in QEMU (address range)

2014-04-29 Thread Ayaz Akram
Hi !! Can anyone tell me, what IO and mem address range is used by e1000 emulation in QEMU ??

[Qemu-devel] PCI Emulation in QEMU

2014-04-03 Thread Ayaz Akram
Can any one tell me, what's the address range used by PCI emulation in QEMU and whether this emulation supports 64 bit addresses? Moreover, is PCIE emulation in QEMU used by any architecture?

[Qemu-devel] PCI Address range

2014-04-03 Thread Ayaz Akram
what's the address range used by pci in QEMU?

[Qemu-devel] Bus in Malta Mips

2014-03-24 Thread Ayaz Akram
Does malta mips use both pci and isa bus for its emulation? In hw/mips_malta.c file I have seen most devices connected to pci bus but there are some ISA devices like i8259. Can someone with deeper understanding explain what is happening in this particular file?

[Qemu-devel] UART EMULATION IN QEMU

2014-03-17 Thread Ayaz Akram
After reviewing uart's emulation related code in serial.c I am not able to understand how interrupt is raised in case fifo mode is enabled. according to UART specifiation, in fifo mode THRE interrupt is raised when fifo is either empty or below threshold.. What I can see, in xmit_serial function,

[Qemu-devel] Interrupt handling

2014-02-05 Thread Ayaz Akram
According to my understanding of interrupt handling mechanism in QEMU, when some external interrupt comes, related device emulation code (e.g. kbd_update_irq in pckbd.c --- qemu_set_irq ) runs in vcpu thread and io-thread when finds that some interrupt has occured sends signal to

[Qemu-devel] Query regarding Iotrhead

2014-02-03 Thread Ayaz Akram
While debugging using gdb, I found that the interrupt related flow is not handled in io thread i.e. on using info thread, I found: Thread 2(iothread) is at __lll_lock_wait() while Thread 1 is at qemu_set_irq(in irq.c).. Initially I thought that this interrupt related

[Qemu-devel] Hardware Interrupt handling

2014-02-03 Thread Ayaz Akram
According to my understanding of interrupt handling mechanism in QEMU, when some external interrupt comes, related device emulation code (e.g. kbd_update_irq in pckbd.c --- qemu_set_irq ) runs in vcpu thread and io-thread when finds that some interrupt has occured sends signal to

[Qemu-devel] printf in qemu

2014-01-29 Thread Ayaz Akram
I observed that if i place printf in qemu at certain places like in hw./serial.c file, I can see the printing when my guest OS is running on qemu, while there are some other places like in pckbd.c (emulation of keyboard), where if printf is used, I am not able to see any printing while guest OS is

[Qemu-devel] Device Emulation in QEMU

2013-11-05 Thread Ayaz Akram
Hi, I am at beginner's level in the field of QEMU... I wanted to know how device emulation works in QEMU? Any helping material or link would be highly appreciated...

[Qemu-devel] Networking in QEMU

2013-10-11 Thread Ayaz Akram
I have to emulate netwotking drivers for a particular mips board in qemu. I have gone through MALTA mips machine and its emulation in qemu, but I have not been able to find any good documentation to find out what should be starting point? Any help in this regard would be highly appreciated...