2010年4月29日 星期四

記得將 hot path problem 寫成 paper

2010年4月24日 星期六

最近心情有點煩

debug不知如何進行!

又要搬家

一個人住好了,簡單,但花錢!

目前有兩個大煩惱:debug如何進行,以及hadoop的project。
我覺得這兩個都是很有趣的問題,不太算煩惱的煩惱。
搬家雖然很煩,但是個改變,感覺也不錯,也許先搬過去再找房客也不差,不急。

下星期會很忙!就星期五搬好了。冷氣要跟室友談好,

加油!

反覆的開啟又關閉

我不能讓一件事就打亂我的心情,

乾脆,那間會很恐怖嗎?
不知道,不過,

抖抖抖抖抖抖的的的抖抖抖抖

2010年4月12日 星期一

qemu 在 user mode 下是用 static code gen buffer,size為32mb
in ./exec.c line 408 it mentioned:
Currently it is not recommended to allocate big chunks of data in
user mode. It will change when a dedicated libc will be used

but don't know why. Why not use mmap as system mode use?

Segment selector Format:

15 ...... 32 10
indexTIRPL

TI Table indicator:
0 means selector indexes into GDT
1 means selector indexes into LDT
RPL Privelege level. Linux uses only two privelege levels.
0 means kernel
3 means user

Examples:

Kernel code segment
TI=0, index=1, RPL=0, therefore selector = 0x08 (GDT[1])
User data segment
TI=1, index=2, RPL=3, therefore selector = 0x17 (LDT[2])
stack 弄壞了!

先弄一個 exit basic block,然後再將 pass 給去掉。

現在要focus 在 indirect branch 上,要知道的是第一個參數的 address 是什麼?
FP->getPassName()
lib/CodeGen/StackProtector.cpp

DefaultJITMemoryManager

lib/CodeGen/LLVMTargetMachine.cpp:
LLVMTargetMachine::addPassesToEmitMachineCode
LLVMTargetMachine::addCommonCodeGenPasses

=============================
Prevent spill register code gen.
enable to emit epilog for branch and indirect brance
=============================
錯在這:0x40095872: mov (%edx),%eax
%edx 為 init_stack+c 的位置,其中的值
在 loader_exec 中就放了!
在 create_elf_tables() 之後!
在 loader_build_argptr() 之後!
在 put_user_ual(stringp, envp) 之後!

2010年4月7日 星期三

MOVS:move string from ds:esi to es:edi
this confuses me

Question is
address-size attribute

給ice:(guest_ip,target_ip,count,type)

2010年4月6日 星期二

what are the meanings of cf,of and af flags in eflag?

CF: This flag indicates an overflow condition for unsigned-integer arithmetic.
Set if an arithmetic operation generates a carry or a borrow out of the most-significant bit of the result; cleared otherwise.

OF: This flag indicates an overflow condition for signed-integer (two’s complement) arithmetic.
Set if the integer result is too large a positive number or too small a negative number (excludingthe sign-bit) to fit in the destination operand; cleared otherwise.

AF: This flag is used in binary-coded decimal (BCD) arithmetic.
Set if an arithmetic operation generates a carry
or a borrow out of bit 3 of the result; cleared otherwise.

2010年4月1日 星期四

首先:

我要將 translation funtion的界面換掉,
它要有:
一、 disassembler傳過去的參數。
二、是否要更新 cc code。
三、extra parameter。

MOV16sr: move register into seqment register
store guest ip into