Re: [Qemu-devel] Round robin of multi-vcpu in qemu

2013-04-22 Thread Wei-Ren Chen
I've examined the alarm timmer, this timer is used to interrupt the execution of VCPUs to handle interruptions. IIRC, alarm timer will interrupt VCPU to execute the next one. You can check where QEMU register the alarm timer, and see how it works. Regards, chenwj -- Wei-Ren Chen (陳韋任

Re: [Qemu-devel] QEMU Exception Handling

2013-04-22 Thread Wei-Ren Chen
instruction, which cost too much). So I guess you can check follow the control flow and see when/where QEMU get the correct PC, then call your exception handler instead, not QEMU's one. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-09 Thread Wei-Ren Chen
) { +tcg_ctx.gen_opc_instr_start[lj] = 0; +} } else { tb-size = ctx.pc - pc_start; tb-icount = num_insns; -- 1.7.2.5 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-09 Thread Wei-Ren Chen
On Tue, Apr 09, 2013 at 10:11:37AM +0200, Paolo Bonzini wrote: Il 09/04/2013 10:05, 陳韋任 (Wei-Ren Chen) ha scritto: Hi liguang, Just to be curious, how much performance improvement this patch can get? I think zero. It is indeed making the code a tiny bit more readable in the 2nd/3rd

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-09 Thread Wei-Ren Chen
Hi liguang, On Tue, Apr 09, 2013 at 04:21:10PM +0800, li guang wrote: 在 2013-04-09二的 10:11 +0200,Paolo Bonzini写道: Il 09/04/2013 10:05, 陳韋任 (Wei-Ren Chen) ha scritto: Hi liguang, Just to be curious, how much performance improvement this patch can get? I think zero

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-09 Thread Wei-Ren Chen
in performance? IMO, if you are saying the patch can improve performance, then you should run benchmark to convince others. If your patch is trying to make code clear, then optimize might not be a good term to describe your patch. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-09 Thread Wei-Ren Chen
you're right, seems the word 'optimize' is not good here. but what should I use? you know, even compiler like gcc will use -O for code optimization. translate: code cleanup in gen_intermediate_code_internal would be better, I think. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] GSoC 2013, Introduce API to query IP addresses for given domain Libvirt project

2013-04-09 Thread Wei-Ren Chen
comment about the difficulty and the content of the project, and also about my chances to be accepted if i apply for. As a libvirt user, I would give it a +1. Currently I have to use `arp -n` on the host to checkout VM's ip. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] win32 qemu binaries

2013-04-03 Thread Wei-Ren Chen
). Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] large memory requirements for translate.c a barrier

2013-03-22 Thread Wei-Ren Chen
target-i386/kvm-stub.d -O2 -D_FORTIFY_SOURCE=2 -g -c -o target-i386/kvm-stub.o /home/todd/git/sw/3rdParty/qemu/target-i386/kvm-stub.c Is it possible to update your GCC, or try to use clang? HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia

[Qemu-devel] [PATCH v3] Use proper term in TCG README

2013-03-19 Thread Wei-Ren Chen
it to improve the condition codes optimisation. -- 1.7.12.3 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] [PATCH] Use proper term in TCG README

2013-03-14 Thread Wei-Ren Chen
On Fri, Mar 08, 2013 at 11:13:24AM +0100, Stefan Hajnoczi wrote: On Fri, Mar 08, 2013 at 05:29:29PM +0800, Peter Maydell wrote: On 8 March 2013 17:21, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 07, 2013 at 11:33:01AM +0800, 陳韋任 (Wei-Ren Chen) wrote: In TCG, target means

[Qemu-devel] [PATCH v2] Use proper term in TCG README

2013-03-14 Thread Wei-Ren Chen
In TCG, target means the host architecture for which TCG generates the code. Using guest rather than target to make the document more consistent. Signed-off-by: Chen Wei-Ren che...@iis.sinica.edu.tw --- tcg/README | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v2] Use proper term in TCG README

2013-03-14 Thread Wei-Ren Chen
Thanks, Peter. On Thu, Mar 14, 2013 at 09:03:15AM +, Peter Maydell wrote: On 14 March 2013 08:06, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: In TCG, target means the host architecture for which TCG generates the code. Using guest rather than target to make the document more

Re: [Qemu-devel] [PATCH v6 08/24] hw/arm: add Faraday FTRTC011 RTC timer support

2013-03-07 Thread Wei-Ren Chen
... Developers should add their test into ${QEMU_SRC}/tests . Am I right? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] qemu-img do not verify encrytption

2013-03-07 Thread Wei-Ren Chen
On Thu, Mar 07, 2013 at 06:57:19PM +0800, yue-kvm wrote: hi stefan: [root@kvm ~]# qemu-img -V qemu-img version 0.12.1, Copyright (c) 2004-2008 Fabrice Bellard Hrm..., 0.12 is too old, why don't you use newer version? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] QEmu TCG SIMD extension?

2013-03-06 Thread Wei-Ren Chen
On Wed, Mar 06, 2013 at 11:47:58AM +0800, Peter Maydell wrote: On 6 March 2013 11:30, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: While searching for QEMU SIMD issues, I found there was a paper presented in 2011 [1], and the source code is also public on [2]. However, it seems

[Qemu-devel] [PATCH] Use proper term in TCG README

2013-03-06 Thread Wei-Ren Chen
In TCG, target means the host architecture for which TCG generates the code. Using guest rather than target to make the document more consistent. Signed-off-by: Chen Wei-Ren che...@iis.sinica.edu.tw --- tcg/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/README

Re: [Qemu-devel] [PATCH v6 08/24] hw/arm: add Faraday FTRTC011 RTC timer support

2013-03-06 Thread Wei-Ren Chen
is built when you build softmmu target. I guess there is no need to add --enable-qtest option. However, I don't know how to run qtest... Stefan (Cc'ed), I think we should cleanup QTest wiki page, right? ;) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information

[Qemu-devel] QEmu TCG SIMD extension?

2013-03-05 Thread Wei-Ren Chen
] http://tima-sls.imag.fr/www/research/qemu/simd-qemu/ [3] http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg02065.html Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] default guest RAM size?

2013-03-04 Thread Wei-Ren Chen
wondering if those boards with little memory still are major user of QEMU? :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] QEMU Profiling

2013-02-26 Thread Wei-Ren Chen
to spot where QEMU jump into the code cache, and when/where it leave the code cache. Then insert your profiling code there. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] [PATCH] reading files from qcow2-formated image disk for windows system

2013-01-10 Thread Wei-Ren Chen
to the CODING_STYLE is not a little work, if anyone is interested in the feature, welcome to join in the work. That might be a hint that you need to split your patch into smaller pieces. :) Regards, chenwj [1] http://wiki.qemu.org/Download -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] [PATCH] reading files from qcow2-formated image disk for windows system

2013-01-10 Thread Wei-Ren Chen
that packages with yum, then download and build it yourself. You can download glib from here [2]. Regards, chenwj [1] http://wiki.xen.org/wiki/QEMU_Upstream [2] http://ftp.gnome.org/pub/gnome/sources/glib/2.34/ -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] [PATCH V2 1/3] HMP: add QDict to info callback handler

2012-12-27 Thread Wei-Ren Chen
) +void pcmcia_info(Monitor *mon, const QDict *qdict) { struct pcmcia_socket_entry_s *iter; -- 1.7.1 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw

[Qemu-devel] [PATCH v3] translate-all.c: Use tb1-phys_hash_next directly in tb_remove

2012-12-20 Thread Wei-Ren Chen
When tb_remove was first commited at fd6ce8f6, there were three different calls pass different names to offsetof. In current codebase, the other two calls are replaced with tb_page_remove. There is no need to have a general tb_remove. Omit passing the third parameter and using tb1-phys_hash_next

Re: [Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-19 Thread Wei-Ren Chen
ping? :-) On Tue, Dec 11, 2012 at 12:15:55AM +0800, 陳韋任 (Wei-Ren Chen) wrote: From the discussion on the ML [1], the exception limit defined by magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the magic number with EXCP_SC. Remove #if 1 .. #endif as well. [1] http

Re: [Qemu-devel] [PATCH v2] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-12-19 Thread Wei-Ren Chen
On Tue, Dec 18, 2012 at 05:37:53PM +0100, Stefan Hajnoczi wrote: On Wed, Nov 21, 2012 at 07:52:48AM +0800, 陳韋任 (Wei-Ren Chen) wrote: When tb_remove was first commited at fd6ce8f6, there were three different calls pass different names to offsetof. In current codebase, the other two calls

Re: [Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-19 Thread Wei-Ren Chen
exception for conditional stores. */ -#define EXCP_SC 0x100 /* * This is an interrnally generated WAKE request line. --- Aurelien, Johnson, thoughts? :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886

Re: [Qemu-devel] Is there anyone kindly help me to create a qemu wiki account?

2012-12-13 Thread Wei-Ren Chen
On Thu, Dec 13, 2012 at 08:22:06PM +0800, Pan Xueshu wrote: Because it has been disabled to create account on the wiki page. Thanks very much! From IRC, I guess kwolf already did this for you? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] [PATCH 1/3] Fix my email address

2012-12-12 Thread Wei-Ren Chen
. Well... Just let him fix his mail address (he want it in the source code). Maybe we can discuss if we want the mail address in the code while reviewing new coming patch next time. ;) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] Some patch about mips, gen_HILO bug fix.

2012-12-10 Thread Wei-Ren Chen
a error. Why not use `git send-mail`? See more details on http://wiki.qemu.org/Contribute/SubmitAPatch Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw

Re: [Qemu-devel] [PATCH v2] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-12-10 Thread Wei-Ren Chen
[CC'ed qemu-trivial] ping? On Wed, Nov 21, 2012 at 07:52:48AM +0800, 陳韋任 (Wei-Ren Chen) wrote: When tb_remove was first commited at fd6ce8f6, there were three different calls pass different names to offsetof. In current codebase, the other two calls are replaced with tb_page_remove

Re: [Qemu-devel] [PATCH_v3] add target-openrisc floating point exception

2012-12-10 Thread Wei-Ren Chen
from the code cache? The 3rd argument of do_raise_exception means if the exception comes from code cache or not, iiuc. Is it correct to put zero here? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799

Re: [Qemu-devel] [PATCH] tcg-i386: Improve cmov detection

2012-12-10 Thread Wei-Ren Chen
or directory (though for some reason not as a fatal error). Bizzare. Out of curiosity, does llvm ship a cpuid.h? Or am I going to be better off not relying on that header at all? I don't think LLVM ship cpuid.h. -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

[Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-10 Thread Wei-Ren Chen
From the discussion on the ML [1], the exception limit defined by magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the magic number with EXCP_SC. Remove #if 1 .. #endif as well. [1] http://lists.gnu.org/archive/html/qemu-devel/2012-11/msg03080.html Signed-off-by: Chen Wei-Ren

Re: [Qemu-devel] [PATCH 3/3] target-i386:slightly refactor dr7 related function

2012-12-06 Thread Wei-Ren Chen
? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] [PATCH] Modified OpenRisc fpu exception

2012-11-30 Thread Wei-Ren Chen
detail. Also, you still doesn't address v1's comment. Why you put both do_raise_exception_err and do_raise_exception here? It's unnecessary to me. Regards, chenwj [1] http://wiki.qemu.org/Contribute/SubmitAPatch -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia

Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization

2012-11-27 Thread Wei-Ren Chen
Peter's suggestion? Do all gcc 4.7.2 on various platform have the same problem, or it only happen on Fedora 17. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] [PATCH v2 1.3] build: compile translate.o with -fno-gcse option

2012-11-27 Thread Wei-Ren Chen
GCC fix this pr or we just leave it there? If we're going to remove it in the future, better keep a note on the release change log or somewhere else. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799

Re: [Qemu-devel] [PATCH] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-11-25 Thread Wei-Ren Chen
On Sun, Nov 25, 2012 at 10:47:00AM +, Peter Maydell wrote: On 25 November 2012 07:50, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: ping? This is v1 of the patch, you've sent a v2 and should be pinging that instead... Also (a) it won't go in before 1.3 release now so not much

Re: [Qemu-devel] [PATCH] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-11-24 Thread Wei-Ren Chen
ping? On Tue, Nov 20, 2012 at 12:41:03PM +, Peter Maydell wrote: On 20 November 2012 12:30, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: When tb_remove was first commited at fd6ce8f6, there were three different calls pass different names to offsetof. In current codebase

Re: [Qemu-devel] FYI: KVM Forum community team photo

2012-11-22 Thread Wei-Ren Chen
is a correct, list of names against faces... http://www.linux-kvm.org/static/kvm-forum-2012-barcelona-team-photo.html Great! -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Wei-Ren Chen
(OpenRISCCPU *cpu, + uint32_t exception, + uintptr_t pc); Ditto. 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] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Wei-Ren Chen
, exception); +#endif Stray debug tracing? target-mips/op_helper.c also has such #if 1 .. #endif. Should we remove it? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

[Qemu-devel] MIPS exception number limits?

2012-11-22 Thread Wei-Ren Chen
, ... { ... #if 1 if (exception 0x100) qemu_log(%s: %d %d\n, __func__, exception, error_code); #endif ... } Anyone can help confirm this, stated in what spec? Also, do we need #if 1 .. #endif? Thanks for help. =] Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] [PATCH v2] target-mips: Clean up microMIPS32 major opcode

2012-11-20 Thread Wei-Ren Chen
ping? -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

[Qemu-devel] [PATCH] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-11-20 Thread Wei-Ren Chen
When tb_remove was first commited at fd6ce8f6, there were three different calls pass different names to offsetof. In current codebase, the other two calls are replaced with tb_page_remove. There is no need to have a general tb_remove. Omit passing the third parameter and using tb1-phys_hash_next

[Qemu-devel] [PATCH v2] exec.c: Use tb1-phys_hash_next directly in tb_remove

2012-11-20 Thread Wei-Ren Chen
); h = tb_phys_hash_func(phys_pc); -tb_remove(tb_phys_hash[h], tb, - offsetof(TranslationBlock, phys_hash_next)); +tb_hash_remove(tb_phys_hash[h], tb); /* remove the TB from the page list */ if (tb-page_addr[0] != page_addr) { -- 1.7.3.4 -- Wei-Ren Chen (陳韋任

[Qemu-devel] [PATCH v2] target-mips: Add comments on POOL32Axf encoding

2012-11-20 Thread Wei-Ren Chen
Current QEMU MIPS POOL32AXF encoding comes from microMIPS32 and microMIPS32 DSP. Add comment here to help reading. Signed-off-by: Chen Wei-Ren che...@iis.sinica.edu.tw --- v2: Correct commit message formatting target-mips/translate.c | 17 + 1 file changed, 17 insertions(+)

Re: [Qemu-devel] [PATCH] target-mips: Add comments on POOL32Axf encoding

2012-11-20 Thread Wei-Ren Chen
Hi Johnson, My bad. Will resend pacth later. ;) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

[Qemu-devel] [PATCH v3] target-mips: Clean up microMIPS32 major opcode

2012-11-20 Thread Wei-Ren Chen
, -LD32 = 0x37, +SD32 = 0x36, /* MIPS64 */ +LD32 = 0x37, /* MIPS64 */ /* 0x38 and 0x39 are reserved */ RES_38 = 0x38, -- 1.7.12.3 -- 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] [PATCH] target-mips: Add comments on POOL32Axf encoding

2012-11-19 Thread Wei-Ren Chen
ping? On Fri, Nov 16, 2012 at 10:29:47AM +0800, 陳韋任 (Wei-Ren Chen) wrote: Hi all, Current QEMU MIPS POOL32AXF encoding comes from microMIPS32 and microMIPS32 DSP. Add comment here to help reading. Please review, thanks. Regards, chenwj Signed-off-by: Chen Wei-Ren che

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] target-mips: Clean up microMIPS32 major opcode

2012-11-17 Thread Wei-Ren Chen
Please send this through Aurelian as maintainer for target-mips/. The discussion on previous the thread show this isn't qemu-trivial material :). O.K., I'll remove this from qemu-trivial if I need to send revision next time. Thanks, Stefan. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] [Qemu-trivial] [PATCH] target-mips: Add comments on POOL32Axf encoding

2012-11-17 Thread Wei-Ren Chen
On Fri, Nov 16, 2012 at 02:59:30PM +0100, Stefan Hajnoczi wrote: On Fri, Nov 16, 2012 at 10:29:47AM +0800, 陳韋任 (Wei-Ren Chen) wrote: Current QEMU MIPS POOL32AXF encoding comes from microMIPS32 and microMIPS32 DSP. Add comment here to help reading. Please review, thanks. Regards

[Qemu-devel] Question about comment on MIPS POOL32AXF encoding

2012-11-15 Thread Wei-Ren Chen
Instruction Set -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

[Qemu-devel] [PATCH v2] target-mips: Clean up microMIPS32 major opcode

2012-11-15 Thread Wei-Ren Chen
Hi all, I check MIPS microMIPS manual [1], and found the major opcode might be wrong. I add a comment to explicitly indicate what manual I am refering to, and according that manual I remove microMIPS32 major opcodes 0x1f. As for others, like 0x16, 0x17, 0x36 and 0x37, they are for higher-order

Re: [Qemu-devel] Question about comment on MIPS POOL32AXF encoding

2012-11-15 Thread Wei-Ren Chen
would like to add a comment here to remind me where they come. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

[Qemu-devel] [PATCH] target-mips: Add comments on POOL32Axf encoding

2012-11-15 Thread Wei-Ren Chen
Hi all, Current QEMU MIPS POOL32AXF encoding comes from microMIPS32 and microMIPS32 DSP. Add comment here to help reading. Please review, thanks. Regards, chenwj Signed-off-by: Chen Wei-Ren che...@iis.sinica.edu.tw --- target-mips/translate.c | 17 + 1 files changed, 17

[Qemu-devel] [PATCH] target-mips: Clean up microMIPS32 major opcode

2012-11-14 Thread Wei-Ren Chen
Hi all, I check MIPS microMIPS manual [1], and found the major opcode might be wrong. I add a comment to explicitly indicate what manual I am refering to, and according that manual I remove some microMIPS32 major opcodes. Major opcode 0x1f is reserved, so I just remove it. As for others, like

Re: [Qemu-devel] [PATCH] target-mips: Clean up microMIPS32 major opcode

2012-11-14 Thread Wei-Ren Chen
Architecture For Programmers Volume I-B: Introduction to the microMIPS64 Architecture MD00743-2B-microMIPS64INT-AFP-03.02.pdf [2] MIPS Architecture For Programmers Volume II-A: The MIPS64 Instruction Set MD00087-2B-MIPS64BIS-AFP-03.51.pdf -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] [PATCH] target-mips: Clean up microMIPS32 major opcode

2012-11-14 Thread Wei-Ren Chen
and SD32 are microMIPS specific. The assembler LD and SD opcodes work for either MIPS64 or microMIPS64. O.K., thanks for the help. :) How about DADDIU32, should I keep the 32 suffix, too? I still can't find where POOL32S is. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] [PATCH] correct error message qemu-img reported

2012-11-01 Thread Wei-Ren Chen
size specified! You may use k, M, G or T suffixes for ); error_report(kilobytes, megabytes, gigabytes and terabytes.); -- 1.7.1 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788

Re: [Qemu-devel] [PATCH 0/5] register reset handlers to reload image

2012-10-26 Thread Wei-Ren Chen
send-mail` should thread your patch together, which means every patch in the series will be threaded to reply the first (cover) letter. Regards, chenwj [1] http://wiki.qemu.org/Contribute/SubmitAPatch -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] [PATCH 1/5] define image_file_reset and image_blob_reset

2012-10-26 Thread Wei-Ren Chen
addr; ditto. Regards, chenwj [1] http://git.qemu.org/qemu.git/commit/?id=51ef67270b1d10e1fcf3de7368dccad1ba0bf9d1 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw

Re: [Qemu-devel] [PATCH 2/5] use reset handlers to reload kernel and initrd

2012-10-26 Thread Wei-Ren Chen
, + target_phys_addr_t *loadaddr) ^^ Use hwaddr instead. I guess you need rebase to the trunk which replace target_phys_addr_t with hwaddr everywhere. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] [PATCH v2 0/7] TCG global variables clean-up

2012-10-24 Thread Wei-Ren Chen
booting? Like Yeongkyoon Lee done with his qemu_ld/qemu_st work [1], EEMBC, nbench , or even SPEC. ;) Regards, chenwj [1] http://lists.gnu.org/archive/html/qemu-devel/2012-10/msg03630.html -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan

Re: [Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-23 Thread Wei-Ren Chen
Hi Yeongkyoon, +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* check whether the give addr is in TCG generated code buffer or not */ should be given. Cheers, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information

Re: [Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-23 Thread Wei-Ren Chen
On Wed, Oct 24, 2012 at 12:11:23PM +0900, Yeongkyoon Lee wrote: On 2012년 10월 24일 00:25, 陳韋任 (Wei-Ren Chen) wrote: Hi Yeongkyoon, +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) defined(CONFIG_SOFTMMU) +/* check whether the give addr is in TCG generated code buffer

Re: [Qemu-devel] Any alternative to kqemu ?

2012-10-17 Thread Wei-Ren Chen
well and uses the CPU natively (no emulation, faster than my qemu without kvm). IIRC, VirtualBox take approach similar to kqemu does, i.e., translate privilege instructions only and run non-privilege instructions on host cpu directly. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] MIPS DSP for Qemu

2012-10-08 Thread Wei-Ren Chen
. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] MIPS DSP for Qemu

2012-10-03 Thread Wei-Ren Chen
I would like to still submit our patches . Please advise. Out port is complete and already tested to a level which would be difficult for someone else to do that does not have access to our AVP test suite. What about Jia's patch? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

[Qemu-devel] Any other cross ISA and system mode binary translator like QEMU?

2012-10-01 Thread Wei-Ren Chen
] -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Dynamic Binary Instrumentation

2012-09-25 Thread Wei-Ren Chen
fix a typo (I guess). -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj diff --git a/docs/instrumentation.txt b/docs/instrumentation.txt index 58ce4cb..c2e79b0

Re: [Qemu-devel] Dynamic Binary Instrumentation

2012-09-21 Thread Wei-Ren Chen
instructions here: https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki The website is down. :/ Would you like to take a look on 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] Any plan to support armv8 emulation

2012-09-20 Thread Wei-Ren Chen
interest in contributing this part? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Does TCG IR use static single assignment (SSA) form?

2012-09-12 Thread Wei-Ren Chen
Excuse me for asking, does TCG-IR  use static single assignment (SSA) form? I just wanna know how to translate a register-based bytecode to TCG-IR. Sounds like you need to take a look at target-xxx/translate.c ? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] TCG questions

2012-09-11 Thread Wei-Ren Chen
-devel/2012-09/msg00379.html -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Virtual Machine Extension Instructions In QEMU

2012-09-05 Thread Wei-Ren Chen
confirm this? I am not sure how complete AMD SVM support in QEMU. :) Regards, chenwj [1] http://wiki.qemu.org/ChangeLog/old -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http

Re: [Qemu-devel] QEMU emulation per CPU

2012-08-30 Thread Wei-Ren Chen
I also think multithread support in qemu user mode is buggy, not only the issue mentioned on above 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 Homepage: http

[Qemu-devel] [ANN] Hellogcc 2012 Workshop, Beijing, Nov. 10th

2012-08-29 Thread Wei-Ren Chen
-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] qemu log function to print out the registers of the guest

2012-08-27 Thread Wei-Ren Chen
My final goal is to obtain the memory access trace for a particular process in the guest, so your patch really helps, except for too many kernel _mmu events. How do you know guest is running which process, and log it's memory access trace? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
/xxx/ if you want to add a new host. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 11:56:13AM +0100, Peter Maydell wrote: On 24 August 2012 04:14, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: I would like to know if there is a function in QEMU which converts a guest physical address into corresponding host virtual address. So the question

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
I want to add a new guest architecture. Is there any description of what the configuration options mean? You mean the options list in `../${QEMU_SRC}/configure --help`? Not sure why you need to care about that. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 08:33:41AM -0700, Michael Eager wrote: On 08/25/2012 05:57 AM, 陳韋任 (Wei-Ren Chen) wrote: On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote: Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 08:50:29AM -0700, Michael Eager wrote: On 08/25/2012 08:38 AM, 陳韋任 (Wei-Ren Chen) wrote: I want to add a new guest architecture. Is there any description of what the configuration options mean? You mean the options list in `../${QEMU_SRC}/configure --help

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-24 Thread Wei-Ren Chen
. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] What's the proper type of guest pde address, target_ulong or target_phys_addr_t?

2012-08-24 Thread Wei-Ren Chen
on both 32 and 64 bit cores. Need to be further investigated. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] What's the proper type of guest pde address, target_ulong or target_phys_addr_t?

2012-08-24 Thread Wei-Ren Chen
://download.intel.com/products/processor/manual/253668.pdf -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-23 Thread Wei-Ren Chen
On Wed, Aug 22, 2012 at 09:38:17PM -0700, Xin Tong wrote: On Wed, Aug 22, 2012 at 8:14 PM, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: In tcg_gen_qemu_ld8s(tmp, addr, index); a TCGv addr is passed to the INDEX_op_qemu_ld8s as param and the loaded value is passed back in tmp. i want

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-23 Thread Wei-Ren Chen
-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-23 Thread Wei-Ren Chen
or something else, then insert a helper function call at the point of TLB hit. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj

[Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-23 Thread Wei-Ren Chen
cpu_physical_memory_unmap, the comment of it says, Unmaps a memory region previously mapped by cpu_physical_memory_map(). That makes me not sure if I use cpu_physical_memory_map correctly, does it do what I want to do? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

[Qemu-devel] What's the proper type of guest pde address, target_ulong or target_phys_addr_t?

2012-08-23 Thread Wei-Ren Chen
be the guest physical address for guest page table and guest page respectively, right? If no one object, I'll send a patch which replaces target_ulong with target_phys_addr_t. Thanks. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-23 Thread Wei-Ren Chen
of guest memory in the code cache with a few host instructions. Disabling software tlb lookup, every guest memory access will call a helper function which takes a lot of time. What you mean by get rid of that piece of generated assembly? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] Dump guest page table inside QEMU makes system hang

2012-08-22 Thread Wei-Ren Chen
pointed by guest pte). Do you happen to know there is such gpa2hva function in QEMU? 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 Homepage: http://people.cs.nctu.edu.tw/~chenwj // we

Re: [Qemu-devel] passing translated address out in QEMU

2012-08-22 Thread Wei-Ren Chen
in that address into tmp. So, what translated value you mean here? The guest physical address, host virtual address, or the value of the guest virtual address? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799

Re: [Qemu-devel] Dump guest page table inside QEMU makes system hang

2012-08-22 Thread Wei-Ren Chen
-a20_mask; target_phys_addr_t len = 4; void *ptr = cpu_physical_memory_map(pde_addr, len, 0); The only thing I am not sure about is what value of len I should use. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C

[Qemu-devel] Dump guest page table inside QEMU makes system hang

2012-08-21 Thread Wei-Ren Chen
here? 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 Homepage: http://people.cs.nctu.edu.tw/~chenwj

  1   2   >