Skip to contentSkip to conversation

Question about EPT translation

DISCUSSION confucius 2 participants 2 messages May 27, 2011 – May 30, 2011

lore
Share & tools
lore

confucius

author
#0 lore raw

Hi,everyone. I have some questions.
1. Does hvmoader need EPT for address translation when it is running?
2. I am sure the guest kernel need EPT when running, but not sure whether hvmloader also needs. I think when virtual bios in hvmloader running, we should make virtual bios sees as if the memory starting from 0, so hvmloader needs EPT, am I right?
3. If hvmloader needs EPT, where we construct EPT structure for it? I can't find correlative part in code flow.
Any helps?

--
View this message in context: http://xen.1045712.n5.nabble.com/Question-about-EPT-translation-tp4432564p4432564.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#1 lore raw

Hi,

Quoted 2 lines · confucius

Hi,everyone. I have some questions.
1. Does hvmoader need EPT for address translation when it is running?

_All_ HVM guests need _either_ EPT/NPT _or_ shadow pagetables, to make the extra translation from guest physical addresses to machine addresses.

Quoted 2 lines

3. If hvmloader needs EPT, where we construct EPT structure for it? I can't find correlative part in code flow.

Did you try searching the code for "EPT"? The EPT datastructures are construced in p2m_ept.c. (p2m is the general term in Xen for the table that maps physical addresses to machine addresses).

Tim.

Signature · 4 lines
                                         Tim Deegan <[email protected]>
                We were back to the sad age-old knowledge that there are
                       only two genuine aphrodisiacs: youth and boredom.
                      [ Alistair Cooke, "Letter From America", 12/5/98 ]