Re: [Qemu-devel] debugging qemu arm

2015-01-31 Thread Attila Csosz
Where is the arm-to-tcg translation? Attila On Sat, Jan 31, 2015 at 5:59 PM, Peter Maydell wrote: > On 31 January 2015 at 16:50, Attila Csosz wrote: > > Where is the arm-to-x86 call in QEMU code? Which tool/library call > generates > > this code? > > We generate the code in target-arm/transla

Re: [Qemu-devel] debugging qemu arm

2015-01-31 Thread Peter Maydell
On 31 January 2015 at 16:50, Attila Csosz wrote: > Where is the arm-to-x86 call in QEMU code? Which tool/library call generates > this code? We generate the code in target-arm/translate.c (actually we generate a TCG intermediate representation which is subsequently turned into x86 instructions by

Re: [Qemu-devel] debugging qemu arm

2015-01-31 Thread Attila Csosz
Where is the arm-to-x86 call in QEMU code? Which tool/library call generates this code? Attila On Sat, Jan 31, 2015 at 5:43 PM, Peter Maydell wrote: > On 31 January 2015 at 12:25, Attila Csosz wrote: > > I'm trying to debug qemu when it executes a simple arm executable. Where > is > > in the

Re: [Qemu-devel] debugging qemu arm

2015-01-31 Thread Peter Maydell
On 31 January 2015 at 12:25, Attila Csosz wrote: > I'm trying to debug qemu when it executes a simple arm executable. Where is > in the qemu code when executing a single arm asm instruction? QEMU works in two phases: (1) we translate ARM code into x86 instructions (2) we run the instructions cr

[Qemu-devel] debugging qemu arm

2015-01-31 Thread Attila Csosz
Hi, I'm trying to debug qemu when it executes a simple arm executable. Where is in the qemu code when executing a single arm asm instruction? Thanks Attila

[Qemu-devel] Debugging QEMU Exits

2013-09-30 Thread Thilak Raj Surendrababu
Hi All, I am new to qemu, I am trying to understand virtio_net. I am seeing a lot of KVM_EXITS due to IO_INSTRUCTION, when I transmit packets from the guest. Can you please let me know on how to understand instruction in the guest, which leads to the KVM exit. >From the /sys/kernel/debug/tracing/

Re: [Qemu-devel] debugging qemu-nbd.c

2013-04-09 Thread Richard W.M. Jones
On Tue, Apr 09, 2013 at 10:41:47AM -0400, Skippy VonDrake wrote: > On Tue, Apr 9, 2013 at 10:33 AM, Richard W.M. Jones wrote: > > On Tue, Apr 09, 2013 at 10:18:50AM -0400, Skippy VonDrake wrote: > >> Hello, > >> > >> Apologies upfront if posting to this list is inappropriate. > >> > >> I have an a

Re: [Qemu-devel] debugging qemu-nbd.c

2013-04-09 Thread Richard W.M. Jones
On Tue, Apr 09, 2013 at 10:18:50AM -0400, Skippy VonDrake wrote: > Hello, > > Apologies upfront if posting to this list is inappropriate. > > I have an app that forks a process with calls qemu-nbd with an offset > into an image. > The app then uses libguestfs to attach the nbd device. > But it ap

[Qemu-devel] debugging qemu-nbd.c

2013-04-09 Thread Skippy VonDrake
Hello, Apologies upfront if posting to this list is inappropriate. I have an app that forks a process with calls qemu-nbd with an offset into an image. The app then uses libguestfs to attach the nbd device. But it appears that qemu is failing. I'm using the latest qemu sources and placed file lo

[Qemu-devel] Debugging QEMU

2008-02-07 Thread Luis Pureza
Hello, I'm getting acquainted with QEMU's internals because I'll need to know them very well for the next few months. I've reached a point where I want to debug QEMU with gdb in order to better understand the code flux related to some things that are still not clear after just looking at the code.