Re: [Qemu-devel] QEMU device timer

2011-09-24 Thread 陳韋任
> In rtl8139.c There is a > > /* PCI interrupt timer */ > QEMUTimer *timer; QEMUTimer is a virtual timer (might use various virtual clocks) used by hw or something else. In thise case, when the timer is time out, rtl8139 will generate a interrupt. Regards, chenwj -- Wei-Ren Chen (陳韋任) C

[Qemu-devel] [Bug 636095] Re: tap downscript is not executed when exiting qemu through "quit" monitor command

2011-09-24 Thread Stefan Hajnoczi
Thanks for providing instructions on how to reproduce this bug. I ran your instructions on qemu.git/master and the issue does not occur. QEMU 0.12.x is old, please try the latest stable release 0.15.0 or qemu.git/master. ** Changed in: qemu Status: New => Fix Committed -- You received t

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-09-24 Thread Anthony Liguori
On Sep 24, 2011 3:05 AM, "Blue Swirl" wrote: > > On Thu, Sep 22, 2011 at 12:34 AM, Anthony Liguori wrote: > > Consider this a friendly reminder that we're only three weeks away from the > > soft feature freeze for 1.0. I've written a wiki page about my expectations > > for the soft feature freez

[Qemu-devel] [PATCH 26/26] Sparc: avoid AREG0 wrappers for memory access helpers

2011-09-24 Thread Blue Swirl
Adjust generation of load and store templates so that the functions take a parameter for CPUState instead of relying on global env. Remove wrappers. Move remaining memory helpers to ldst_helper.c. Signed-off-by: Blue Swirl --- Makefile.target| 12 ++- configure |

[Qemu-devel] [PATCH 25/26] softmmu templates: optionally pass CPUState to memory access functions

2011-09-24 Thread Blue Swirl
Optionally, make memory access helpers take a parameter for CPUState instead of relying on global env. Signed-off-by: Blue Swirl --- Only x86_64 is converted (buggy). The helper is called with correct arguments, but the generated code crashes afterwards. Some of the tcg-target.c changes should b

[Qemu-devel] [PATCH 24/26] Sparc: avoid AREG0 for memory access helpers

2011-09-24 Thread Blue Swirl
Make memory access helpers take a parameter for CPUState instead of relying on global env. Introduce wrappers for load and store ops. Signed-off-by: Blue Swirl --- Makefile.target|2 +- target-sparc/cpu.h | 82 ++ target-sparc/helper.h | 24 ++-- target-s

[Qemu-devel] [PATCH 23/26] TCG: add 5 arg helpers to def-helper.h

2011-09-24 Thread Blue Swirl
Signed-off-by: Blue Swirl --- def-helper.h | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/def-helper.h b/def-helper.h index 8a822c7..a13310e 100644 --- a/def-helper.h +++ b/def-helper.h @@ -118,6 +118,8 @@ DEF_HELPER_FLAGS_3(name, 0, ret, t

[Qemu-devel] [PATCH 21/26] Sparc: convert win_helper to trace framework

2011-09-24 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/win_helper.c | 30 -- trace-events |8 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/target-sparc/win_helper.c b/target-sparc/win_helper.c index f42d996..a68c649 100644 --- a/targ

[Qemu-devel] [PATCH 20/26] Sparc: convert int_helper to trace framework

2011-09-24 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/int_helper.c | 41 +++-- trace-events |7 +++ 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/target-sparc/int_helper.c b/target-sparc/int_helper.c index 3361eed..76a3fdb 100644

[Qemu-devel] [PATCH 19/26] Sparc: convert mmu_helper to trace framework

2011-09-24 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/mmu_helper.c | 64 ++--- trace-events | 10 +++ 2 files changed, 30 insertions(+), 44 deletions(-) diff --git a/target-sparc/mmu_helper.c b/target-sparc/mmu_helper.c index 5743081..8cdc224 100

[Qemu-devel] [PATCH 17/26] Sparc: fix coding style in helper.c

2011-09-24 Thread Blue Swirl
Before the next patch, fix coding style of the areas affected. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 95 +++-- 1 files changed, 52 insertions(+), 43 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 5f8cf3

[Qemu-devel] [PATCH 16/26] Sparc: avoid AREG0 for division op helpers

2011-09-24 Thread Blue Swirl
Make [su]div{,cc} helpers take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Signed-off-by: Blue Swirl --- target-sparc/helper.c| 76 ++ target-sparc/helper.h|8 ++-- target-sparc/op_helper.c |

[Qemu-devel] [PATCH 15/26] Sparc: avoid AREG0 for softint op helpers and Leon cache control

2011-09-24 Thread Blue Swirl
Make softint op helpers and Leon cache irq manager take a parameter for CPUState instead of relying on global env. Move the functions to int_helper.c. Signed-off-by: Blue Swirl --- target-sparc/cpu.h| 31 --- target-sparc/helper.h |6 +- target-sparc/int_helper.c |

[Qemu-devel] [PATCH 13/26] Sparc: split CWP and PSTATE op helpers

2011-09-24 Thread Blue Swirl
Move CWP and PSTATE op helpers to win_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |4 +- target-sparc/cpu.h|4 +- target-sparc/op_helper.c | 489 +-- target-sparc/win_helper.c | 518 +

[Qemu-devel] [PATCH 14/26] Sparc: avoid AREG0 for CWP and PSTATE helpers

2011-09-24 Thread Blue Swirl
Make CWP and PSTATE helpers take a parameter for CPUState instead of relying on global env. Remove wrapper functions. Signed-off-by: Blue Swirl --- Makefile.target |2 +- target-sparc/helper.h | 32 +++--- target-sparc/translate.c | 34 target-sparc/win_helper.c |

[Qemu-devel] [PATCH 12/26] Sparc: avoid AREG0 for lazy condition code helpers

2011-09-24 Thread Blue Swirl
Make lazy condition code helpers take a parameter for CPUState instead of relying on global env. Signed-off-by: Blue Swirl --- Makefile.target |2 +- target-sparc/cc_helper.c | 73 ++--- target-sparc/helper.h|4 +- target-sparc/op_he

[Qemu-devel] [PATCH 11/26] Sparc: split lazy condition code handling op helpers

2011-09-24 Thread Blue Swirl
Move lazy condition code handling op helpers to cc_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |4 +- target-sparc/cc_helper.c | 486 ++ target-sparc/op_helper.c | 464 --- 3 files chan

[Qemu-devel] [PATCH 09/26] Sparc: split FPU and VIS op helpers

2011-09-24 Thread Blue Swirl
Move FPU op helpers to fop_helper.c. Move VIS op helpers to vis_helper.c, compile it only for Sparc64. Signed-off-by: Blue Swirl --- Makefile.target |5 +- target-sparc/fop_helper.c | 394 target-sparc/op_helper.c | 743 --

[Qemu-devel] [PATCH 07/26] Sparc: avoid AREG0 for raise_exception and helper_debug

2011-09-24 Thread Blue Swirl
Make raise_exception() and helper_debug() take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Signed-off-by: Blue Swirl --- target-sparc/helper.c| 12 ++ target-sparc/helper.h|4 +- target-sparc/op_helper.c | 100

[Qemu-devel] [PATCH 06/26] Sparc: move trivial functions from op_helper.c

2011-09-24 Thread Blue Swirl
These functions don't need access to CPUState or already pass it, so relocating them from op_helper.c to helper.c and int_helper.c is trivial. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 41 +++ target-sparc/int_helper.c |7 ++ target-s

[Qemu-devel] [PATCH 04/26] Sparc: fix coding style

2011-09-24 Thread Blue Swirl
Before the next patch, fix coding style of the areas affected. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 73 +++- 1 files changed, 41 insertions(+), 32 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index c80531a

[Qemu-devel] [PATCH 03/26] Move GETPC from dyngen-exec.h to exec-all.h

2011-09-24 Thread Blue Swirl
GETPC() can be used even from outside of helper code. Move the macro to a more accessible location. Avoid a compile warning from redefining it in exec.c. Signed-off-by: Blue Swirl --- dyngen-exec.h | 12 exec-all.h| 12 exec.c|1 + 3 files changed, 1

[Qemu-devel] [PATCH 02/26] softmmu_header: pass CPUState to tlb_fill

2011-09-24 Thread Blue Swirl
Pass CPUState pointer to tlb_fill() instead of architecture local cpu_single_env hacks. Signed-off-by: Blue Swirl --- exec-all.h|2 +- softmmu_template.h|8 target-alpha/op_helper.c |7 +++ target-arm/op_helper.c|6 ++

[Qemu-devel] [PATCH 01/26] Document softmmu templates

2011-09-24 Thread Blue Swirl
Add some comments to describe each file. Signed-off-by: Blue Swirl --- softmmu_defs.h |8 softmmu_exec.h | 12 +++- softmmu_header.h |9 + softmmu_template.h |5 + 4 files changed, 33 insertions(+), 1 deletions(-) diff --git a/softmmu_defs.h

[Qemu-devel] [PATCH 00/26] AREG0 conversion

2011-09-24 Thread Blue Swirl
In this version, target-sparc/op_helper.c is completely eliminated after the last commit! For some reason, sparc-softmmu crashes after first qemu_st op and it does not compile on non-x86. Other targets still seem to work, as does sparc-softmmu until the last patch. I haven't tested i386 host eithe

Re: [Qemu-devel] QEMU device timer

2011-09-24 Thread Xin Tong
In rtl8139.c There is a /* PCI interrupt timer */ QEMUTimer *timer; Xin On Sat, Sep 24, 2011 at 7:58 AM, 陳韋任 wrote: > > I am new to QEMU. I saw most devices in QEMU has a timer associated with > it. > > ^^ > For example? > > Regards, > chenwj > > -- > Wei-Ren

Re: [Qemu-devel] [Qemu-ppc] [PATCH 50/58] pseries: Update SLOF firmware image

2011-09-24 Thread Paolo Bonzini
On 09/20/2011 05:40 AM, David Gibson wrote: Ah, yes, here's the point. Updating git.qemu.org is not within my power, so I can't myself construct a commit doing a submodule + binary update in this fashion. Sure you can. A submodule checkout is just like any other git commit. A commit doing a

[Qemu-devel] [Bug 636095] Re: tap downscript is not executed when exiting qemu through "quit" monitor command

2011-09-24 Thread Sergey Svishchev
Have you reported this to QEMU developers' mailing list? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/636095 Title: tap downscript is not executed when exiting qemu through "quit" monitor comman

Re: [Qemu-devel] QEMU device timer

2011-09-24 Thread 陳韋任
> I am new to QEMU. I saw most devices in QEMU has a timer associated with it. ^^ For example? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan

Re: [Qemu-devel] TB chaining

2011-09-24 Thread 陳韋任
> Say your are trying to emulate an indirect jump ( i.e. jmp eax). Because eax > is unknown at compile time, you will have to return to the mainloop to look > it up. However, if you know some likely values, you can do a few cached > compare and hope it hits one of them. > > compare eax = 0x33e3e23

Re: [Qemu-devel] TB chaining

2011-09-24 Thread Xin Tong
Say the On Fri, Sep 23, 2011 at 10:50 PM, 陳韋任 wrote: > > I see, so they (jmp_next, jmp_first) are just for finding the tbs when > > unchaining is needed. do they have any other uses? also, does QEMU do > inline > > caching ( when it is a conditional branch)? > > Yes, they are used for unchaini

Re: [Qemu-devel] [PATCH 24/58] PPC: E500: Add PV spinning code

2011-09-24 Thread Blue Swirl
On Sat, Sep 24, 2011 at 10:00 AM, Alexander Graf wrote: > > On 24.09.2011, at 10:44, Blue Swirl wrote: > >> On Sat, Sep 24, 2011 at 8:03 AM, Alexander Graf wrote: >>> >>> On 24.09.2011, at 09:41, Blue Swirl wrote: >>> On Mon, Sep 19, 2011 at 4:12 PM, Scott Wood wrote: > On 09/19/2

Re: [Qemu-devel] [PATCH 24/58] PPC: E500: Add PV spinning code

2011-09-24 Thread Alexander Graf
On 24.09.2011, at 10:44, Blue Swirl wrote: > On Sat, Sep 24, 2011 at 8:03 AM, Alexander Graf wrote: >> >> On 24.09.2011, at 09:41, Blue Swirl wrote: >> >>> On Mon, Sep 19, 2011 at 4:12 PM, Scott Wood wrote: On 09/19/2011 06:35 AM, Alexander Graf wrote: > > On 17.09.2011, at 19:4

Re: [Qemu-devel] [PATCH 24/58] PPC: E500: Add PV spinning code

2011-09-24 Thread Blue Swirl
On Sat, Sep 24, 2011 at 8:03 AM, Alexander Graf wrote: > > On 24.09.2011, at 09:41, Blue Swirl wrote: > >> On Mon, Sep 19, 2011 at 4:12 PM, Scott Wood wrote: >>> On 09/19/2011 06:35 AM, Alexander Graf wrote: On 17.09.2011, at 19:40, Blue Swirl wrote: > On Sat, Sep 17, 2011 at 5

Re: [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API

2011-09-24 Thread Hervé Poussineau
Avi Kivity wrote: > Signed-off-by: Avi Kivity > --- > > hw/mips_jazz.c | 90 > 1 files changed, 45 insertions(+), 45 deletions(-) > > diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c > index f3c9f93..7cac5da 100644 > --- a/hw/mips_jazz.c > ++

Re: [Qemu-devel] [PATCH] [SPARC] Fix segfault in Leon3

2011-09-24 Thread Blue Swirl
On Thu, Sep 22, 2011 at 3:42 PM, Fabien Chouteau wrote: > Remove faulty access to global "env" in op_helper.c, replaced by function > argument. > > Signed-off-by: Fabien Chouteau > --- >  target-sparc/cpu.h       |   10 ++ >  target-sparc/helper.c    |    2 +- >  target-sparc/op_helper.c

Re: [Qemu-devel] op-helper.c vs helper.c

2011-09-24 Thread Blue Swirl
On Thu, Sep 22, 2011 at 1:09 PM, Xin Tong Utoronto wrote: > > > On Mon, Sep 19, 2011 at 9:49 AM, Peter Maydell > wrote: >> >> On 19 September 2011 13:06, Xin Tong Utoronto wrote: >> > There are 2 files on helpers in target-ppc and target-i386 ( op-helper.c >> >  helper.c), what are their differe

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-09-24 Thread Blue Swirl
On Thu, Sep 22, 2011 at 12:34 AM, Anthony Liguori wrote: > Consider this a friendly reminder that we're only three weeks away from the > soft feature freeze for 1.0.  I've written a wiki page about my expectations > for the soft feature freeze.  It's inlined here for easier commenting. I think th

Re: [Qemu-devel] [PATCH 24/58] PPC: E500: Add PV spinning code

2011-09-24 Thread Alexander Graf
On 24.09.2011, at 09:41, Blue Swirl wrote: > On Mon, Sep 19, 2011 at 4:12 PM, Scott Wood wrote: >> On 09/19/2011 06:35 AM, Alexander Graf wrote: >>> >>> On 17.09.2011, at 19:40, Blue Swirl wrote: >>> On Sat, Sep 17, 2011 at 5:15 PM, Alexander Graf wrote: > > Am 17.09.2011 um 18:

Re: [Qemu-devel] [PATCH] trace: Provide a per-event status define for conditional compilation

2011-09-24 Thread Blue Swirl
2011/9/21 Lluís Vilanova : > Adds a 'trace_${name}_enabled' preprocessor define for each tracing event in > "trace.h". > > This lets the user conditionally compile code with a relatively high execution > cost that is only necessary when producing the tracing information for an > event > that is en

Re: [Qemu-devel] [PATCH 24/58] PPC: E500: Add PV spinning code

2011-09-24 Thread Blue Swirl
On Mon, Sep 19, 2011 at 4:12 PM, Scott Wood wrote: > On 09/19/2011 06:35 AM, Alexander Graf wrote: >> >> On 17.09.2011, at 19:40, Blue Swirl wrote: >> >>> On Sat, Sep 17, 2011 at 5:15 PM, Alexander Graf wrote: Am 17.09.2011 um 18:58 schrieb Blue Swirl : > On Sparc32, there is n

Re: [Qemu-devel] [PATCH] remove mpc8544ds.dtb

2011-09-24 Thread Alexander Graf
On 16.09.2011, at 21:05, Stuart Yoder wrote: > From: Stuart Yoder > > make install now compiles dtb It doesn't when you don't have dtb installed, breaking the e500 target for build environments that don't have dtb. I don't think that's a good idea. It's not been too painful upstream to keep

Re: [Qemu-devel] [RFC 4/8] savevm: move QEMUFile interfaces into qemu-file.c

2011-09-24 Thread Blue Swirl
On Mon, Sep 19, 2011 at 2:41 PM, Michael Roth wrote: > > Signed-off-by: Michael Roth > --- >  Makefile.objs |    2 +- >  hw/hw.h       |    1 + >  qemu-file.c   |  521 > + >  savevm.c      |  494

Re: [Qemu-devel] The reason behind block linking constraint?

2011-09-24 Thread 陳韋任
Hi, Max > I meant TLB change by e.g. tlb_set_page. If you change single page > mapping then all TBs in that page will be gone. > This may be the result of e.g. a page swapping, or a task switch. You said "all TBs in that page will be gone". Does it mean QEMU will invalidate those TBs by for exa