Re: [Qemu-devel] Multi heterogenous CPU archs for SoC sim?

2011-10-21 Thread
QEMUs at the same time. QEMUs communicates to each other by using a underlying thin layer provided by COREMU. I think this approach is much clean than trying to parallelize QEMU itself. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

[Qemu-devel] [Qemu-trivial] [PATCH] exec.c: Remove useless comment

2011-10-21 Thread
As phys_ram_size had been removed since QEMU 0.12. Remove the useless comment. Signed-off-by: Chen Wen-Ren che...@iis.sinica.edu.tw --- exec.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index d0cbf15..fb21e76 100644 --- a/exec.c +++ b/exec.c @@

Re: [Qemu-devel] KVM VMenter/exit cost

2011-10-20 Thread
on the Intel or AMD x86 chip and kernel enter/exit on 2.6.x linux. Any paper or presentation on it would be great. Try KVM mailing list instead? http://www.linux-kvm.org/page/Lists,_IRC Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia

Re: [Qemu-devel] website

2011-10-14 Thread
the spam. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] In-kernel emulation

2011-10-07 Thread
. You want to use QEMU to emulate guest ISA different from the host? If the ISA of guest and host is the same, then KVM is enough, I think. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] In-kernel emulation

2011-10-07 Thread
guest isa is different from host isa in this case. Xin On Fri, Oct 7, 2011 at 12:33 PM, 陳韋任 che...@iis.sinica.edu.tw wrote: I am wondering that whether there are any attempts (product-oriented or research-based ) to push QEMU into the Linux kernel to speed up emulation

Re: [Qemu-devel] Correction: Announcing qemu-users - the unofficial mailing list for qemu users (was: Now, what's left to non-developers? ... )

2011-09-30 Thread
^^ Is it right? Should be http://lists.nongnu.org/mailman/listinfo/qemu-discuss , I think. :-) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] Correction: Announcing qemu-users - the unofficial mailing list for qemu users (was: Now, what's left to non-developers? ... )

2011-09-30 Thread
Hi, Ottavio Would you like to put http://tech.groups.yahoo.com/group/qemu-users/ on http://wiki.qemu.org/MailingLists ? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

[Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread
! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread
. Maybe it's also not needed anymore since I/O thread was enabled.  - gdb_do_syscall: Don't know when it get called.  - vm_stop - cpu_stop_current: Don't know when it get called. grep -r is your friend. I'll dig into it. Thanks. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-28 Thread
glad that my -save-temps suggestion helps other ;) Indeed. Thanks again, Mulyadi. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-27 Thread
is, tb_find_slow - get_page_addr_code - ldub_code - __ldb_cmmu I can only guest the b in __ldb_cmmu means load byte, but I can't figure out what's the difference between _cmmu and _mmu. Could you give me some hint? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-27 Thread
needs __{ld,st}* helpers for qemu_{ld,st}* TLB miss case, these are generated by softmmu_template.h. I'll soon apply a patch which adds comments to the files. Thanks. I am very appreciate it. :-) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-27 Thread
between _cmmu and _mmu. Could you give me some hint? Thanks! _cmmu is used to access code, _mmu is for data. I see. Thanks, and I find building QEMU with --extra-cflags=-save-temps is really help. Those *.i files make things much clear. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

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

2011-09-26 Thread
) TARGET_PAGE_MASK)) { I guess this is because it'll be too complicated to track all links jump to this (guest) page. A guest page might contains hundreds of TBs. If the guest page is gone, then it's not a easy thing to do unlinking. Does this make sense? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems

Re: [Qemu-devel] Add new frontend target

2011-09-26 Thread
Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

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

2011-09-26 Thread
execute tb2, it might have wrong memory access through the mapping of guest page. Am I right? If we execute tb2, it's not what guest would expect us to do at least. At least it should trigger a (guest) page fault. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

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

2011-09-26 Thread
such constraint, I have to run something big to make QEMU crash? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

[Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-26 Thread
., C code). I am wondering when/where the tlb_fill is called from generated code (code cache) or from helper.c. Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

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

2011-09-24 Thread
-error_code); } Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] TB chaining

2011-09-24 Thread
idea. HTH. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

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] 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 (陳韋任

Re: [Qemu-devel] TB chaining

2011-09-23 Thread
you please explain what inline caching is? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] TB chaining

2011-09-22 Thread
) and tb2 (struct TranslationBlock) to reflect the fact that tb1 (in the code cache) is linked to tb2 (in the code cache). jmp_next and jmp_first are fields of struct TranslationBlock, we use them when we need to unchian TBs (in the code cache). Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems

[Qemu-devel] [PATCH] exec.c: Remove useless comment

2011-09-21 Thread
As phys_ram_size had been removed since QEMU 0.12. Remove the useless comment. Signed-off-by: Chen Wen-Ren che...@iis.sinica.edu.tw --- exec.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index c1e045d..9192579 100644 --- a/exec.c +++ b/exec.c @@

Re: [Qemu-devel] QEMU TB lookup

2011-09-21 Thread
table */ env-tb_jmp_cache[tb_jmp_cache_hash_func(pc)] = tb; Otherwise, it goes to lable not_found: not_found: /* if no translated code available, then translate it now */ tb = tb_gen_code(env, pc, cs_base, flags, 0); Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] TB chaining

2011-09-21 Thread
wrong. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] TB chaining

2011-09-21 Thread
that while QEMU generate host binary from TCG IR, it will leave some space for further block chaining to do the patch. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] TB chaining

2011-09-21 Thread
to those TBs next to this one. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

[Qemu-devel] Question on block chaining

2011-09-19 Thread
be tb2, and tb2-jmp_first should be tb1. So the comment list of TBs jumping to this one looks weird to me. Do I misunderstand how the block chaining is done? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel

Re: [Qemu-devel] QEMU as a binary disassembler

2011-09-19 Thread
ops translation. If your PTX means CUDA PTX, I think QEMU doesn't support such target currently. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] How can I understand iotlb (IOMMU)

2011-09-06 Thread
I can't understand CPUState's iotlb field , Why we need iotlb ? I guess he want to know why there are tlb and iotlb in the CPUState, not just one. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788

[Qemu-devel] How QEMU manages guest machine's memory?

2011-09-05 Thread
overview on how QEMU manages the guest machine's memory, I'll be very appreciate that. Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] Execute QEMU the same

2011-08-23 Thread
-kouwe.pdf Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] Multi-threaded user program support?

2011-08-19 Thread
likely broken, for instance.) If you look in MAINTAINERS you'll see Just to be curious. *If* QEMU support multithreaded user program, would the different memory (coherence/consistency) model between guest and host architecture become a problem? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

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

2011-08-18 Thread
someone kindly explain why there are constraints on block linking? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] Multi-threaded user program support?

2011-08-18 Thread
is that it mostly works but if you You mean some QEMU data structures need to be thread-local or lock protected in order to emulate guest multi-threaded program correctly? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel

[Qemu-devel] Multi-threaded user program support?

2011-08-17 Thread
! Regards, chenwj [1] http://patchwork.ozlabs.org/patch/31746/ -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

[Qemu-devel] Question about adding IBTC (Indirect Branch Translation Cache) into QEMU

2011-08-09 Thread
} - Have I already considered all kind of situations? Or something else I need to do to make IBTC work in system mode? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] Missing op on SPARC

2011-02-26 Thread
Hi, Blue Since my machine is UltraSparc T2, I should configure QEMU with --sparc_cpu=v9, right? But it gave me the error below, ERROR: gcc either does not exist or does not work Maybe I should pass some flag to QEMU or update my gcc? Regards, chenwj -- Wei-Ren Chen (陳韋任) Parallel

[Qemu-devel] Missing op on SPARC

2011-02-24 Thread
op definition for qemu_ld64 Missing op definition for qemu_st64 /tmp/chenwj/qemu-0.14.0/tcg/tcg.c:1116: tcg fatal error Aborted -- Is it possible to fix it? If so, how? Any sugguestions appreciated. Regards, chenwj -- Wei-Ren Chen (陳韋任

Re: [Qemu-devel] Building QEMU on PS3

2011-02-23 Thread
Hi, Roy Seems to be related: http://www.mail-archive.com/qemu-devel@nongnu.org/msg55914.html Thanks for the info. I wonder if it is possible to cross compile qemu for ppc (host) on a x86 machine. Regards, chenwj -- Wei-Ren Chen (陳韋任) Parallel Processing Lab, Institute of Information

Re: [Qemu-devel] Building QEMU on PS3

2011-02-23 Thread
Hi, Roy What I did is apply the patch (see attachment) which comment out an assertion in tcg/tcg.c first. Then configure qemu with --enable-debug option. I don't know if it is safe to remove the assertion though, but it works for small program. Regards, chenwj -- Wei-Ren Chen (陳韋任) Parallel

Re: [Qemu-devel] Building QEMU on PS3

2011-02-23 Thread
Forgot to add the attachment, sorry. :) -- Wei-Ren Chen (陳韋任) Parallel Processing Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 --- qemu-0.13.0/tcg/tcg.c.orig 2010-10-16 04:56:09.0 +0800 +++ qemu-0.13.0/tcg/tcg.c 2011-02-24 09:46

[Qemu-devel] Building QEMU on PS3

2011-02-22 Thread
appreciated. Regards, chenwj -- Wei-Ren Chen (陳韋任) Parallel Processing Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

<    1   2   3