Skip to contentSkip to conversation

hvmloader problems?

DISCUSSION henanwxr 2 participants 2 messages May 19, 2011

lore
Share & tools
lore

henanwxr

author
#0 lore raw

Hi all, I have some puzzle about hvmloader in the path /tools/firmware/, they are:
1: Is hvmloader running in non-root mode?
2: If hvmloader runs in non-root mode, does it have its pagetable? when set GUEST_CR3 in vmcs?
3: How can I find the value of GUEST_RIP in vmcs is set to the entry point of hvmloader,when virtual machine do it first vm entry.

Much Thanks!

- henanwxr

--
View this message in context: http://xen.1045712.n5.nabble.com/hvmloader-problems-tp4410213p4410213.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 3 lines · henanwxr

Hi all, I have some puzzle about hvmloader in the path /tools/firmware/, they are:
1: Is hvmloader running in non-root mode?

Yes.

Quoted 2 lines

2: If hvmloader runs in non-root mode, does it have its pagetable? when set GUEST_CR3 in vmcs?

It runs in 32-bit protected mode, but with paging disabled. Hence it never sets GUEST_CR3.

Quoted 2 lines

3: How can I find the value of GUEST_RIP in vmcs is set to the entry point of hvmloader,when virtual machine do it first vm entry.

It doesn't get changed from its initial value of zero. Execution starts at 0x0 and immediately executes a JMP to the actual start address. The JMP is inserted by tools/libxc/xc_hvm_build.c (just search in there for JMP).

-- Keir

Quoted 15 lines

Much Thanks!

- henanwxr

View this message in context: hvmloader problems?
<http://xen.1045712.n5.nabble.com/hvmloader-problems-tp4410213p4410213.html>
Sent from the Xen - Dev mailing list archive
<http://xen.1045712.n5.nabble.com/Xen-Dev-f2473738.html> at Nabble.com.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel