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" > >> platfo

Re: [Qemu-devel] Android Goldfish on QEMU

2012-05-25 Thread
[1], but apparently 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-3

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

2012-05-25 Thread
ate 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 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
ink 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 Sin

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

2012-05-22 Thread
/* as an example. Otherwise, looks at tcg/xxx/*. 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] Is it possible to retrieve pre-process information in QEMU?

2012-05-21 Thread
#x27;s why I add a counter there. But this way I'll collect 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 Scienc

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

2012-05-21 Thread
G0), 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 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
e me some hits? I guest you need to write your own floating helper functions to do that. Am I right, Max? 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 01/15] Openrisc: add target stub

2012-05-17 Thread
;vmstate_cpu, opaque, version_id); } --- 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 01/15] Openrisc: add target stub

2012-05-17 Thread
ge it > into OpenriscCPU. I think OpenRISC is better [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
I suppose you only need to #include "def-helper.h" once? 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] 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 Sc

Re: [Qemu-devel] x86 AREG0 patches

2012-05-14 Thread
tch will remove AREG0 so 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

Re: [Qemu-devel] What TARGET_HAS_PRECISE_SMC means?

2012-05-10 Thread
) at /tmp/chenwj/qemu-0.13.0/softmmu_template.h:213 #4 0x0054e4ab in __stl_mmu (addr=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

[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] [Bug 996303] Re: does not work with clang

2012-05-09 Thread
ovides. -- 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
rface. > > Any approach 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

Re: [Qemu-devel] KVM call agenda for May, Tuesday 8th

2012-05-07 Thread
al. :/ If people can focus on one document, 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-02 Thread
veryone use x86/x86_64, so I 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

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

2012-05-02 Thread
ause and *_resume 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

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

2012-04-25 Thread
ot; message. Any idea on which part I might did wrong? I use QEMU git 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 u

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

2012-04-21 Thread
ed by helper functions in scalar manner. 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
gainst 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 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
n't compatible with gdb. Does gdb 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
ill_tlb() > ... > > } Perhaps __ldb_mmu is not only called in the TLB lookup sequence, I guess. But I am not sure of 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://people.cs.nctu.edu.tw/~chenwj

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

2012-04-17 Thread
) is (almost) what 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

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

2012-04-14 Thread
MASK) || (pc & TARGET_PAGE_MASK) == ((s->pc - 1) & TARGET_PAGE_MASK)) { } --- 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] Question about the block linking limitation

2012-04-11 Thread
u-devel/2011-09/msg03065.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

[Qemu-devel] Question about the block linking limitation

2012-04-10 Thread
e as tb is. In summary, those check (1) and (2) are used to avoid 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

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

2012-04-05 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] Debug single program in QEMU

2012-04-03 Thread
7;s hard to find the real instructions of that single 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 in

Re: [Qemu-devel] Monitor Instruction Execution

2012-04-03 Thread
; ideas on this? How 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] Why we need unlink tb when cpu_interrupt/cpu_exit get called?

2012-04-02 Thread
OS can respond to my keyboard. 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-27

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

2012-04-02 Thread
I ran 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 Informati

Re: [Qemu-devel] memory ordering emulation in qemu

2012-03-29 Thread
s.gnu.org/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] Moniter The Ram Access On QEMU

2012-03-29 Thread
s an "internal" source which breaks the current execution flow of the CPU. Take divide by zero as an example, CPU 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, che

Re: [Qemu-devel] Moniter The Ram Access On QEMU

2012-03-29 Thread
-> X86 to moniter the ram > access on QEMU? TGC ops like qemu_ld/qemu_st 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, Ac

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, 陳韋任 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 newb

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

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

2012-03-23 Thread
ecture/ -- 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 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-2

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 Syste

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, "陳韋任" wrote: > > > On Thu, Mar 15, 2012 at 01:26:44PM +0700, Mulyadi Santosa wrote: > > > On Thu, Mar 15, 2012 at 09:12, Yue Chen wrote: > > > > Hi!

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

2012-03-15 Thread
proach to do this under > > 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, Acad

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

2012-03-14 Thread
> Finally, as I am trying to trace the functions called, is it possible for > me to output the true address of the translated instruction instead of its > code cache address? If yes, this would allow me to compare the generated > trace and with the dump of the IR, making it easy to draw a code flow graph. I think you need to output the guest pc, which is ususally something like "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] [patch] correct tracing.txt

2012-03-08 Thread
e-trace-backend=simple > make > > 2. Create 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-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 i

Re: [Qemu-devel] questions about pci

2012-03-06 Thread
et called. 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] Support for Nested Paging

2012-03-03 Thread
mentioned on the mail below is a good start. http://www.mail-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, Academ

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]

2012-03-03 Thread
tp://en.wikipedia.org/wiki/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] Doubts about qemu tcg/tci

2012-03-02 Thread
%esp,%ebp 0x080483b7: pop%ebp 0x080483b8: ret > Finally, I've been trying to find material about how 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

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

2012-03-01 Thread
te important if we want to make TCG 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.6011&rep=rep1&type=pdf -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia

[Qemu-devel] How QEMU handle precise exception?

2012-02-29 Thread
- Emulate all 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 Home

Re: [Qemu-devel] QOM: why "klass" used instead of "class" ?

2012-02-29 Thread
headers. I thought QEMU is written in C, right? Is there anything related to C++? 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 v2] TCG: Convert global variables to be TLS.

2012-02-28 Thread
ey done while facing > 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

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

2012-02-28 Thread
s unless you know where > you're going... Would 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 Informatio

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

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

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] Help me about the FDC

2012-02-22 Thread
, 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
> 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] [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, 陳韋任 wrote: > >  Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 adds basic version of > > bridge > > helper, but introduces dependency issue at the same time. While buildin

[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 h

[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 p

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] [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] 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] 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] 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] 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] 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] how could I analysis the trace log?

2012-02-12 Thread
t be help. 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 follow a child process created in the guest OS?

2012-02-12 Thread
> probably via gdbserver. I see. 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] 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.

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

2012-02-09 Thread
work. 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, Acade

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

2012-02-09 Thread
cpu(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.

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

2012-02-07 Thread
events while I/O operations are > running. So, IO thread runs the event loop (I 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 Syst

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

2012-02-06 Thread
ardless current QEMU's 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-

[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 (陳韋任) --- 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 a9fa608..2c2d24

[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 (陳韋任) --- 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 execution loop

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

2012-02-03 Thread
e. Maybe you can try libcpu [1] 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] Is there any document about qemu's kernel boot loader?

2012-02-03 Thread
; > > Device simulation 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,

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

2012-02-01 Thread
. If the tb 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] setjmp outside cpu loop

2012-01-31 Thread
you mean 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] Proper way to walk through all vpcus

2012-01-31 Thread
for(; curr_cpu != 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

Re: [Qemu-devel] TCG register allocator

2012-01-31 Thread
;re talking about [1], 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 #16

Re: [Qemu-devel] longjmp in qemu

2012-01-31 Thread
places, each of which > suggests something faulty has happened. my guess is that it will get call > 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 f

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, 陳韋任 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 ev

Re: [Qemu-devel] TB chaining in QEMU

2012-01-30 Thread
es is writing some data (which will be executed as instruction latter 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] spawning and killing threads in qemu

2012-01-30 Thread
[New Thread 0x7ffed2013700 (LWP 29500)] > >> > >> what 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 ch

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

2012-01-20 Thread
_cache is sane 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, Taiw

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, 陳韋任 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 s

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

2012-01-20 Thread
u-devel/2011-09/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] 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, chenw

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

2012-01-20 Thread
ve implementation? And as a general emulator, QEMU shouldn't implement any architecture-specific memory model, right? What comes into my mind 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 caref

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-20 Thread
gt; the from the CPUstates, call 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 (陳韋任) Co

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

2012-01-20 Thread
model as IA64. Regards, chenwj [1] http://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

[Qemu-devel] The comment of cpu-exec.c might be wrong?

2012-01-19 Thread
it's O.K., I'll send a patch to correct this comment. Any comment? 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] icount and tb chaining

2012-01-19 Thread
On Wed, Jan 18, 2012 at 07:50:19PM +, Peter Maydell wrote: > On 18 January 2012 19:43, James Greensky wrote: > > On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote: > >> I think those numbers (0, 1, and 2) means tb_add_jump 2nd parameter here, > >> so > >> it

  1   2   3   >