Re: [Qemu-devel] Android Goldfish on QEMU

2012-05-26 Thread
On Sat, May 26, 2012 at 02:51:29PM +0200, Andreas Färber wrote: Am 26.05.2012 07:55, schrieb 陳韋任: On Fri, May 25, 2012 at 06:13:25PM -0400, Ira Ray Jenkins wrote: I found a GSOC11 project that attempted to port the Android Goldfish platform to mainline QEMU. Was this project successful

Re: [Qemu-devel] [PATCH 6/9] unicore32-softmmu: add generic cpu state save/load functions

2012-05-25 Thread
]); +} +} +} Do you think use VMState rather then QEMUFile is a good idea? I saw OpenRISC target got this kind of feedback before [1]. Regards, chenwj [1] http://lists.gnu.org/archive/html/qemu-devel/2012-05/msg02457.html -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] Android Goldfish on QEMU

2012-05-25 Thread
it not get merged into trunk. I don't know why. :) Regards, chenwj [1] http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02436.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

Re: [Qemu-devel] How to create new target port?

2012-05-23 Thread
/*. The term target could be a little MISLEADING here. :) 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] How to measure precise system time in qemu?

2012-05-23 Thread
you can use `time` to measure the timing in user mode, but things seems get quit complicate in system mode. Regards, chenwj [1] http://blog.gmane.org/gmane.comp.emulators.qemu.coremu.devel/month=20120401 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] [PATCH 02/15] Openrisc: add MMU support

2012-05-21 Thread
? In dyngen-exec.h, the CPUArchState *env is kept in particular host register (AREG0), so you shouldn't use env here somehow. Maybe Blue can show you some example how to do that, target-sparc/* might be a place? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information

Re: [Qemu-devel] Is it possible to retrieve pre-process information in QEMU?

2012-05-21 Thread
a global static not per-process one. I'll try systemtap latter but not sure it does the same thing I want to do. Any thoughts? :) 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 01/15] Openrisc: add target stub

2012-05-17 Thread
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 01/15] Openrisc: add target stub

2012-05-17 Thread
[1]. Regards, chenwj [1] http://en.wikipedia.org/wiki/OpenRISC -- 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 01/15] Openrisc: add target stub

2012-05-17 Thread
); } --- Leave to vmstate_save_state/vmstate_load_state (savevm.c) do the real things. 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 03/15] Openrisc: add instructions translation

2012-05-17 Thread
-- 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] Is it possible to retrieve pre-process information in QEMU?

2012-05-16 Thread
Hi all, I would like to know if I can retrieve pre-process information in QEMU system mode. For example, I want to know each process's page fault ratio. Is there a way to do that? Thanks. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] x86 AREG0 patches

2012-05-14 Thread
that we can use clang to compile QEMU? How much the performance lose? 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] What TARGET_HAS_PRECISE_SMC means?

2012-05-10 Thread
more about it, but googling doesn't help. Would you mind to shed some light 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 Homepage: http://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] What TARGET_HAS_PRECISE_SMC means?

2012-05-10 Thread
=229376, val=0, mmu_idx=0) at /tmp/chenwj/qemu-0.13.0/softmmu_template.h:245 --- 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

Re: [Qemu-devel] [Bug 996303] Re: does not work with clang

2012-05-09 Thread
. -- 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] To run (replay) the intermediate micro-ops directly

2012-05-08 Thread
to do this in QEMU? Thanks. Maybe take a look at http://lists.gnu.org/archive/html/qemu-devel/2008-07/msg00507.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] KVM call agenda for May, Tuesday 8th

2012-05-07 Thread
, then it's easier to make it a good shape. 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] [RFC 1.1] Fix qemu in documentation for version 1.1?

2012-05-03 Thread
think replace qemu with particular name is inappropriate. When qemu is not used for the name of the executable, it should be written QEMU. Agreed. I have no idea about remaining stuff. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] API for single stepping an emulated CPU

2012-05-02 Thread
functions, but they are - as far as I know - not applicable for my task. Just a quick reply. QEMU system mode provides -singlestep option. Maybe you can start from there, see how the singlestep is done. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

[Qemu-devel] How to build realview-pbx-a9 kernel/rootfs for QEMU by using buildroot?

2012-04-26 Thread
head and QEMU 0.13. Thanks in advance. :) 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] Optimization for amd CPUs without amd-v using sse2, 3, 4 instructions

2012-04-23 Thread
On Sun, Apr 22, 2012 at 12:07:40PM +0800, 陳韋任 wrote: I am using qemu to run VMs on my computer with amd chip on board. However, my computer doesn't support amd-v, so the performance of the VM is low. I do have experiences in optimization of program using sse technique. Is it possible

Re: [Qemu-devel] Optimization for amd CPUs without amd-v using sse2, 3, 4 instructions

2012-04-22 Thread
. Maybe you can try to map guest SIMD into host SIMD. Good Luck! 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 softmmu inlined lookup sequence

2012-04-17 Thread
TLB lookup hit/miss looks like. If TLB miss, it will call something like __ldb_mmu (b). __ldb_mmu will try to walk guest page table, then fill TLB entry if page table hit, or raise a guest page fault exception if page table miss. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] qemu softmmu inlined lookup sequence

2012-04-17 Thread
-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] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-17 Thread
7.2 support PIE? QEMU default build is PIE. Try disable PIE build then run gdb 7.2 again? 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 softmmu inlined lookup sequence

2012-04-17 Thread
-- 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] Question about the block linking limitation

2012-04-14 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://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Question about the block linking limitation

2012-04-11 Thread
-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] Question about the block linking limitation

2012-04-10 Thread
block linking to cross guest page boundary. Am I right? If so far so good, I am curious about why we need (s-pc - 1) instead of just (s-pc). Could you shed some light on that? Thanks in advance! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] Switch off use of helper functions

2012-04-05 Thread
(陳韋任) 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] Monitor Instruction Execution

2012-04-03 Thread
about inserting your own helper functions instead of an interrupt? 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] Debug single program in QEMU

2012-04-03 Thread
program... You have to know that even a simple helloworld contains many instructions than you thought (dynamic linker, for example). My suggestion is using `objdump` at the same time to locate the function you're interested in, then look into the log. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

[Qemu-devel] Why we need unlink tb when cpu_interrupt/cpu_exit get called?

2012-04-02 Thread
linux-0.2.img with a modified QEMU whose cpu_unlink_tb does nothing. Everything seems work fine. Is this experiment too trivial to show what bad things happened when we don't unlink tb? Thanks! :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] Why we need unlink tb when cpu_interrupt/cpu_exit get called?

2012-04-02 Thread
. Besides, Ctrl + C can not terminate QEMU, I have to use `kill` to stop it. Is this what you expect? 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] Moniter The Ram Access On QEMU

2012-03-29 Thread
is for address translations (guest virtual to host virtual) in system mode, that's all I can tell. 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] Moniter The Ram Access On QEMU

2012-03-29 Thread
will detect this error (occurred in the CPU itself). So depends on what you mean exception, do_interrupt or gen_exception might does the real work. 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] memory ordering emulation in qemu

2012-03-29 Thread
/archive/html/qemu-devel/2012-01/msg01897.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://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] [RFC 1/9] hostdev: introduce the infrastructure for host device model

2012-03-28 Thread
Il 28/03/2012 09:53, Zhi Yong Wu ha scritto: By the way, why have we not add one QOM cookbook to docs? It is very useful for us newbiew to learn. You can write what you learn during this work. This should be a good start! :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

Re: [Qemu-devel] [RFC 1/9] hostdev: introduce the infrastructure for host device model

2012-03-28 Thread
On Wed, Mar 28, 2012 at 04:25:54PM +0800, Zhi Yong Wu wrote: On Wed, Mar 28, 2012 at 4:05 PM, 陳韋任 che...@iis.sinica.edu.tw wrote: Il 28/03/2012 09:53, Zhi Yong Wu ha scritto: By the way, why have we not add one QOM cookbook to docs? It is very useful for us newbiew to learn.  You can

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-23 Thread
for all ASE DSP instructions can be just one patch. Regards, chenwj [1] MIPS32® Architecture for Programmers VolumeIV-e: The MIPS® DSP Application-Specific Extension to the MIPS32®Architecture http://www.mips.com/products/product-materials/processor/mips-architecture/ -- Wei-Ren Chen (陳韋任

Re: [Qemu-devel] How To Boot Up Linux Kernel/Android on QEMU

2012-03-22 Thread
Another question, how can I boot up Android on QEMU? IIRC, QEMU is lack of some hw support needed by Android platform, so the answer might be no. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread
QEMU? Thanks. are you referring to you Qemu system emulation or Qemu user mode? Does that matter? I think -d op should be enough, 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

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread
: But it is hard to localize a specific program instead of lots of logs. On Mar 15, 2012 4:14 AM, 陳韋任 che...@iis.sinica.edu.tw wrote: On Thu, Mar 15, 2012 at 01:26:44PM +0700, Mulyadi Santosa wrote: On Thu, Mar 15, 2012 at 09:12, Yue Chen ycyc...@gmail.com wrote: Hi!~ Now I'd like to see

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread
http://qemu.weilnetz.de/qemu-doc.html#QEMU-User-space-emulator On Thu, Mar 15, 2012 at 10:42:02PM -0400, Yue Chen wrote: So how to run a Windows program or Linux program under user mode ? I cannot find useful documentations. Many thanks. -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] Doubts about qemu tcg/tci

2012-03-14 Thread
target_ulong pc. 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] questions about pci

2012-03-08 Thread
CC'ed to the list. On Wed, Mar 07, 2012 at 07:47:08PM +0800, WanPeng Li wrote: On Tue, Mar 06, 2012 at 06:10:16PM +0800, 陳韋任 wrote: I read pci code in qemu about i440fx, pci.c and so on. I think if guest os whose mainboard is based on x86, it will use IO instructions to access PCI

Re: [Qemu-devel] [patch] correct tracing.txt

2012-03-08 Thread
a file with the events you want to trace: -- 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] questions about pci

2012-03-06 Thread
(陳韋任) 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] IRQ number, interrupt number, interrupt line GPIO[in/out]

2012-03-03 Thread
/Conventional_PCI [4] http://en.wikipedia.org/wiki/General_Purpose_Input/Output [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://people.cs.nctu.edu.tw/~chenwj

Re: [Qemu-devel] Support for Nested Paging

2012-03-03 Thread
-archive.com/qemu-devel@nongnu.org/msg99864.html HTH, chenwj [1] http://wiki.qemu.org/Documentation/GettingStartedDevelopers#Getting_to_know_the_code -- 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] Doubts about qemu tcg/tci

2012-03-02 Thread
this translation works properly, but I've been unable to find much. Is there something I should be reading before asking around here? If yes, please, point me to it! See above. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-03-01 Thread
multithreaded, right? Is there a better way to solve this? Regards, chenwj [1] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.6011rep=rep1type=pdf -- 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] QOM: why klass used instead of class ?

2012-02-29 Thread
; * } * Why to use klass, not class? Because in C++, class is a reserved word. It is quite typical idiom to replace class with klass in (public) headers. I thought QEMU is written in C, right? Is there anything related to C++? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

[Qemu-devel] How QEMU handle precise exception?

2012-02-29 Thread
potentially trapping guest instructions in the same order with respect to the guest store instructions. 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

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-02-28 Thread
different problems on the way of paralleling the TCG. I'm sure that those approaches should be used in future work. FWIW, COREMU maintainer tends to upstream their work but they have another project to do right now, so ... ;) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-02-28 Thread
the paper PQEMU: A Parallel System Emulator Based on QEMU help on this? Regards, chenwj [1] http://www.cs.nthu.edu.tw/~ychung/conference/ICPADS2011.pdf -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage

Re: [Qemu-devel] Help me about the FDC

2012-02-22 Thread
3: or give me some introduce of FDC. http://en.wikipedia.org/wiki/Floppy_disk_controller 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

Re: [Qemu-devel] Help me about the FDC

2012-02-22 Thread
-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 v2] Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

2012-02-22 Thread
Hi Stefan, Peter already fix this issue [1]. Please ignore my patch, thanks! Regards, chenwj [1] http://patchwork.ozlabs.org/patch/142306/ -- 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] Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

2012-02-22 Thread
...which Peter has already done: http://patchwork.ozlabs.org/patch/142306/ Please coordinate with him. O.K., I already told Stefan to ignore my patch. :) Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan

Re: [Qemu-devel] arm-linux-user, i386-linux-user: Make QEMU act as TCG compiler

2012-02-22 Thread
Hi Rajat, Great work! It seems this is a kind of like static compilation, right? I think people are more interested in using QEMU as a dynamic translator as a library. Would you mind to tell me what scenario your work aims to? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab

[Qemu-devel] [PATCH] Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

2012-02-21 Thread
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 adds basic version of bridge helper, but introduces dependency issue at the same time. While building target xxx-linux-user, qemu-bridge-helper.c needs config-host.h which is not generated at the moment. Building recurse-all target first fixes the

[Qemu-devel] [PATCH v2] Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

2012-02-21 Thread
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 adds basic version of bridge helper, but introduces dependency issue at the same time. While building target xxx-linux-user, qemu-bridge-helper.c needs config-host.h which is not generated at the moment. Explicitly declaring the dependency for the

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

2012-02-21 Thread
On Tue, Feb 21, 2012 at 12:27:26PM +, Stefan Hajnoczi wrote: On Tue, Feb 21, 2012 at 10:12 AM, 陳韋任 che...@iis.sinica.edu.tw wrote:  Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 adds basic version of bridge helper, but introduces dependency issue at the same time. While building

Re: [Qemu-devel] [MASCOT CONTEST] Alex Bradbury #1

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Benoit Canet #2

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Wei-Ren Chen #2

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Andreas Faerber #1

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Clare Liguori #1

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Wei-Ren Chen #3

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] [MASCOT CONTEST] Wei-Ren Chen #5

2012-02-16 Thread
+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/~chenwj

Re: [Qemu-devel] How to follow a child process created in the guest OS?

2012-02-12 Thread
probably don't want to be using a hardware debug probe (i.e. the qemu gdb stub) at all. Instead you want to be using the debug facilities provided by your operating system. On linux this would be ptrace, probably via gdbserver. I see. Thanks. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] how could I analysis the trace log?

2012-02-12 Thread
-- 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] How to follow a child process created in the guest OS?

2012-02-10 Thread
On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: On Thu, Feb 09, 2012 at 06:33:16PM +0800, 陳韋任 wrote: The question is not so related to QEMU itself, but I want to give it a try. I am running a tiny OS on QEMU and debugging it with gdbstub. The tiny OS will fork

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-09 Thread
(env); --- return env; } Just follow qemu_init_vcpu and you'll see how vcpu thread is spawn. 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] How to follow a child process created in the guest OS?

2012-02-09 Thread
. This seems to be a bug or missing feature in GDB remote protocol. [1] Is there a way to do what I'm trying to do? Thanks! Regards, chenwj [1] http://sourceware.org/bugzilla/show_bug.cgi?id=13584 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-07 Thread
think it's main_loop_wait in main-loop.c, right?), and it leave blocking I/O system calls to posix-aio-compat.c worker threads? Is that correct? Thanks! Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788

Re: [Qemu-devel] Get only TCG code without execution

2012-02-06 Thread
support for multi-threaded application, it's possible to emulate a architecture with stronger memory model on a weaker 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 Homepage: http

[Qemu-devel] [PATCH v2] cpu-exec.c: Correct comment about this file and indentation cleanup

2012-02-06 Thread
indentation cleanup. Signed-off-by: Chen Wei-Ren (陳韋任) che...@iis.sinica.edu.tw --- v1 - v2: Didn't notice tab in previous patch, please use this patch instead. Sorry about that. cpu-exec.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [PATCH] cpu-exec.c: Correct comment about this file and indentation cleanup

2012-02-04 Thread
indentation cleanup. Signed-off-by: Chen Wei-Ren (陳韋任) che...@iis.sinica.edu.tw --- cpu-exec.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index a9fa608..f7f19f5 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -1,5 +1,5 @@ /* - * i386 emulator main

Re: [Qemu-devel] Is there any document about qemu's kernel boot loader?

2012-02-03 Thread
is somehow easy to comprehend. As for kernel boot, is there any detailed document? I need some to make it clearer. I guess not. You might need to read the source code first then ask question here. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science

Re: [Qemu-devel] libqemu for use in parallel-language based simulator

2012-02-03 Thread
] instead? Regards, chenwj [1] http://www.libcpu.org/wiki/Main_Page -- 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 pc hash table vs physical pc hash table

2012-02-01 Thread
of process B is existed, QEMU refill the virtual pc hash table. Otherwise, it does the translation. 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] nested page table translation for non-x86 operating system

2012-01-31 Thread
On Fri, Jan 20, 2012 at 08:54:12AM -0500, Xin Tong wrote: On Fri, Jan 20, 2012 at 3:23 AM, 陳韋任 che...@iis.sinica.edu.tw wrote: 1. The control of gCR3 and hCR3 needs kernel access. While they can be set with a device module as what is done in kvm. Trapping into the kernel every time gCR3

Re: [Qemu-devel] longjmp in qemu

2012-01-31 Thread
when exceptions have occurred in the code cache. Am I right ? Not exactly. `grep -r cpu_resume_from_signal` shows places using cpu_resume_from_signal. Not all of them means something faulty has happened, I think. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute

Re: [Qemu-devel] TCG register allocator

2012-01-31 Thread
], maybe you can seek for help on their mailing list too. [1] http://sourceforge.net/p/coremu/home/Home/ 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] Proper way to walk through all vpcus

2012-01-31 Thread
!= NULL; curr_cpu = curr_cpu-next_cpu) { ... } Seems this is a proper way to iterate all virtual cpus. 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] setjmp outside cpu loop

2012-01-31 Thread
if there is another thread calls cpu_loop_exit when TCG is doing the translation? 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] spawning and killing threads in qemu

2012-01-30 Thread
spawns these threads and what do these threads do ? The block layer's thread pool. Qemu 1.0 enable IO thread by default, I think that's why you can see there are two threads. You can check block/raw-posix-aio.h, posix-aio-compat.c and linux-aio.c. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer

Re: [Qemu-devel] TB chaining in QEMU

2012-01-30 Thread
on) into the memory. In this case, icache/dcache should be sync'ed. 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 only TCG code without execution

2012-01-20 Thread
://en.wikipedia.org/wiki/Memory_ordering -- 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] nested page table translation for non-x86 operating system

2012-01-20 Thread
to helpers for exits from the code cache, we need to change the paging mechanism back to non-nested. can this be done ? how expensive will this be ? Why the memeory references done by the host will be broken? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread
is QEMU only need to follow guest memory operations when translates guest binary to TCG ops. When translate TCG ops to host binary, it also has to be careful not to mess up the memory ordering. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia

Re: [Qemu-devel] Question about do_interrupt (target-i386/op_helper.c)

2012-01-20 Thread
In cpu_exec() env is a local variable. In do_interrupt() it is the global variable (held in a specific register via asm(AREG0)). The two aren't necessarily the same value, hence the fiddling about. Do you mean we sync env with envl at this point? Regards, chenwj -- Wei-Ren Chen (陳韋任

Re: [Qemu-devel] QEMU TB Unlinking due to interrupt.

2012-01-20 Thread
/msg03643.html 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

Re: [Qemu-devel] Get only TCG code without execution

2012-01-20 Thread
On Fri, Jan 20, 2012 at 09:09:46AM +, Peter Maydell wrote: On 20 January 2012 06:12, 陳韋任 che...@iis.sinica.edu.tw wrote:  Out of curiosity. What's ARM memory model? From the Wikipedia [1], it seems ARMv7 has the same memory model as IA64. The ARM memory model is the set of semantics

Re: [Qemu-devel] virtual pc hash table vs physical pc hash table

2012-01-20 Thread
or not. If something goes wrong, it turns to call tb_find_slow to use physical pc to do a slow search. The size should not be the reason for having 2 hash tables. 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] icount and tb chaining

2012-01-19 Thread
{ } Many 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

[Qemu-devel] Question about do_interrupt (target-i386/op_helper.c)

2012-01-19 Thread
functions use the global env, while others use function parameter env. Is it necessary? Or we can unify how they use env? 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

  1   2   3   >