about the HOST_CR3

37 views
Skip to first unread message

mengxp(孟学政)

unread,
Nov 8, 2011, 8:13:28 AM11/8/11
to hyperdbg
hi,

I found a line in vmx.c like this

VmxVmcsWrite(HOST_CR3, host_cr3);

and the host_cr3 is allocated and initialized by function
mmu.c:MmuInit()

this function only copy the PDE to a new one

and we setup HOST_CR3

i'm confused that is this work necessary ?

can we set like this

VmxVmcsWrite(HOST_CR3, RegGetCr3());

It seems that when i change the line to VmxVmcsWrite(HOST_CR3,
RegGetCr3());
my ubuntu will die after insmod hcore.ko

why???

Aristide Fattori

unread,
Nov 8, 2011, 8:21:03 AM11/8/11
to hype...@googlegroups.com
Hi,

that part is still a work in progress and it is buggy, I have a fix
for it but I tested it only on windows so I didn't commit it yet. Feel
free to disable it by setting *pcr3 = cr3 and returning
HVM_STATUS_SUCCESSFUL.

Cheers,
Aristide


2011/11/8 mengxp(孟学政) <m...@live.cn>:

--
GnuPG Key on keyserver.pgp.com ID 0x25578128
http://security.dico.unimi.it/~joystick/

Reply all
Reply to author
Forward
0 new messages