[Qemu-devel] GSoC - Tracepoint support for the gdbstub

2012-03-11 Thread Lyu Mitnick
Hello all, I am Mitnick Lyu, who want to contribute to QEMU and participate Google Summer of Code this year. I have some experience with tool-chain developing and I am highly interested in the project: Tracepoint support for the gdbstub. I am wondering to know whether there is someone working for

[Qemu-devel] Question about (next_tb 3) == 2

2011-08-26 Thread Lyu Mitnick
Hello all, I am a newbie of QEMU and wondering to know the meaning of: if ((next_tb 3) == 2) { /* Instruction counter expired. */ int insns_left; tb = (TranslationBlock *)(long)(next_tb ~3); /* Restore PC. */ cpu_pc_from_tb(env, tb); insns_left = env-icount_decr.u32;

[Qemu-devel] Execute QEMU the same

2011-08-23 Thread Lyu Mitnick
Hello all, I am wondering to know whether QEMU could run the same twice. ie. the same of execution trace. I read the user manual and find options like: -clock dynticks -rtc base=2006-06-17T16:01:21,clock=vm -icount 1. Would QEMU run the same with these options?? PS. I also found the function

[Qemu-devel] Question about debugging binary translator (TCG beckend) in system mode

2011-07-23 Thread Lyu Mitnick
Hello all, I have written my own TCG code generator (translate TCG to i386). It works well in user mode (pass every benchmark). However, there is something error in system mode: Host - x86-64, Configuration - --target-list=i386-softmmu --enable-debug --disable-kvm

[Qemu-devel] Question about vpc 004 testcase of qemu-iotests

2011-04-17 Thread Lyu Mitnick
Hello all, I use qemu-iotests to test vpc part of master tree. An error occurred when I type ./check -vpc. Error message is as follows: 004 4s ... - output mismatch (see 004.out.bad) --- 004.out 2011-04-10 15:43:21.819400771 +0800 +++ 004.out.bad 2011-04-17 10:45:00.642745274 +0800 @@ -9,7 +9,8

Re: [Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-15 Thread Lyu Mitnick
Hello Kevin, 2011/4/14 Kevin Wolf kw...@redhat.com Am 13.04.2011 22:59, schrieb Lyu Mitnick: Hello Stefan, I have a question about get_option_parameter(). I am wondering whether get_option_parameter is suitable to use instead of doing the search by myself in the case like following

[Qemu-devel] Question about maximum disk size of a dynamic hard disk

2011-04-13 Thread Lyu Mitnick
Hello Kevin, Stefan and all There is a sentence The maximum size of a dynamic hard disk is 2040 GB. The actual size is restricted by the underlying disk hardware protocol. For example, ATA hard disks have a 127-GB limit in VHD specification. This limitation infected the algorithm of

Re: [Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-13 Thread Lyu Mitnick
, BLOCK_OPT_SIZE)) { // do something } else if (!strcmp(options-name, BLOCK_OPT_CLUSTER_SIZE)) { // do something } options++; } Thanks 2011/4/11 Stefan Hajnoczi stefa...@gmail.com On Sun, Apr 10, 2011 at 05:02:20PM +0800, Lyu Mitnick wrote: diff --git

Re: [Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-11 Thread Lyu Mitnick
. Is it right?? Thanks a lot 2011/4/12 Christoph Hellwig h...@lst.de On Sat, Apr 09, 2011 at 09:05:41PM +0100, Stefan Hajnoczi wrote: On Sat, Apr 9, 2011 at 5:51 PM, Lyu Mitnick mitnick@gmail.com wrote: Hell all, I have take a look of block/vpc.c and meet a question in vpc_create

Re: [Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-10 Thread Lyu Mitnick
Hello Stefan, Is it your means: There is an assumption that a block device cannot be addressed below 512 byte sectors. A reasonable protection in block.c:bdrv_create() to check whether size is a multiple of BDRV_SECTOR_SIZE. Signed-off-by: Mitnick Lyu mitnick@gmail.com --- block.c | 10

[Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-09 Thread Lyu Mitnick
Hell all, I have take a look of block/vpc.c and meet a question in vpc_create(). At the line 550, the code is: total_sectors = options-value.n / 512; I am wondering whether the size between total_sectors * 512 and options-value.n would be discard. Thanks Mitnick

[Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests

2011-04-08 Thread Lyu Mitnick
This my first time to submit patch, please tell me if I have something wrong! Create scratch/ on first run. Signed-off-by: Mitnick Lyu mitnick@gmail.com --- common.config |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/common.config b/common.config index

[Qemu-devel] No scratch directory in qemu-iotests

2011-04-07 Thread Lyu Mitnick
Hello When I want to use qemu-iotests, some error occurred: $ git clone git:// git.kernel.org/pub/scm/linux/kernel/git/hch/qemu-iotests.git $ cd qemu-iotests $ ./check -h common.config: Error: $TEST_DIR (/home/mitnick/Desktop/GSoC2011/QEMU/qemu-iotests/scratch) is not a directory There is no

Re: [Qemu-devel] GSoC - QCOW2 - QED image converter

2011-04-06 Thread Lyu Mitnick
to give some advice about the solution I take in this problem?? 2011/4/6 Stefan Hajnoczi stefa...@gmail.com On Tue, Apr 5, 2011 at 7:03 PM, Lyu Mitnick mitnick@gmail.com wrote: Hello Stefan, Kevin I don't want to diversify my GSoC applications. I thought I should do my best

Re: [Qemu-devel] GSoC - QCOW2 - QED image converter

2011-04-06 Thread Lyu Mitnick
Hello Christoph, 2011/4/6 Christoph Hellwig h...@lst.de On Wed, Apr 06, 2011 at 05:15:29PM +0200, Kevin Wolf wrote: Am 06.04.2011 17:06, schrieb Christoph Hellwig: On Wed, Apr 06, 2011 at 07:41:37AM +0100, Stefan Hajnoczi wrote: Yes, split images are not supported by block/vpc.c.

Re: [Qemu-devel] GSoC - QCOW2 - QED image converter

2011-04-05 Thread Lyu Mitnick
.c and guess there isn't this feature in block/vpc.c. I am wondering whether what I learned is right?? 2011/4/5 Stefan Hajnoczi stefa...@gmail.com On Mon, Apr 4, 2011 at 7:56 PM, Lyu Mitnick mitnick@gmail.com wrote: Hello all, Looking at QEMU'w wiki I saw the QCOW2 - QED image converter

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-04-04 Thread Lyu Mitnick
Hello Stefan, 2011/4/3 Stefan Hajnoczi stefa...@gmail.com On Sat, Apr 2, 2011 at 8:03 PM, Lyu Mitnick mitnick@gmail.com wrote: Hello Stefan, I have take a look at block.c. But I am a little confused about the meaning of synchronous/asynchronous i/o. I know the two concept

[Qemu-devel] GSoC - QCOW2 - QED image converter

2011-04-04 Thread Lyu Mitnick
Hello all, Looking at QEMU'w wiki I saw the QCOW2 - QED image converter, that I am also interested to work as student and apply for GSoC 2011. I have study the specifications of the two images and have some idea about implementation. There is someone already working on this project?? I also want

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-04-02 Thread Lyu Mitnick
, 2011 at 7:29 PM, Lyu Mitnick mitnick@gmail.com wrote: Hello I have some question about asynchronous i/o in QEMU block driver: Why a file format with asynchronous i/o support(ex. qcow) doesn't need to register bdrv_read/bdrv_write which is registered in vhd file format?? Would qcow

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-04-01 Thread Lyu Mitnick
Hello Stefan Hello Mitnick, asynchronous i/o is also missing in block/vpc.c. All newer block drivers support asynchronous reads and writes, only some old drivers don't. So adding asynchronous i/o to at least some of the old drivers would improve their usability. Look for aio in

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-04-01 Thread Lyu Mitnick
2011/4/2 Kevin Wolf kw...@redhat.com Am 01.04.2011 17:15, schrieb Lyu Mitnick: Hello Stefan Hello Mitnick, asynchronous i/o is also missing in block/vpc.c. All newer block drivers support asynchronous reads and writes, only some old drivers don't. So adding

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Lyu Mitnick
Mitnick 2011/3/30 Stefan Hajnoczi stefa...@gmail.com On Wed, Mar 30, 2011 at 5:50 AM, Stefan Weil w...@mail.berlios.de wrote: Am 29.03.2011 23:55, schrieb Lyu Mitnick: Hello all, I have used QEMU to assist me developing embedded system for 3 years. And I want to contribute to QEMU

Re: [Qemu-devel] GSoC: Improved image format compatibility

2011-03-30 Thread Lyu Mitnick
Would you mind to tell me the project containing four topics above is suitable for GSoC of size and skill level?? And would anyone is interested in this project and being my mentor?? thanks very much 2011/3/31 Stefan Weil w...@mail.berlios.de Am 30.03.2011 20:40, schrieb Lyu Mitnick: Hello

[Qemu-devel] GSoC: Improved image format compatibility

2011-03-29 Thread Lyu Mitnick
Hello all, I have used QEMU to assist me developing embedded system for 3 years. And I want to contribute to QEMU and participate Google Summer of Code this year. I have port binutils so I have some experienced with binary format. I noticed that there is no VHD support in qemu-img. A Virtual Hard