xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Question about EPT translation
@ 2011-05-27 16:17 confucius
  2011-05-30  8:42 ` Tim Deegan
  0 siblings, 1 reply; 3+ messages in thread
From: confucius @ 2011-05-27 16:17 UTC (permalink / raw)
  To: xen-devel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about EPT translation
       [not found] <BLU163-ds373A534D93901C3E0FB82DE780@phx.gbl>
@ 2011-05-29 21:49 ` Daniel Castro
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Castro @ 2011-05-29 21:49 UTC (permalink / raw)
  To: henanwxr; +Cc: xen-devel

Hello,
Next time I will only replay through the list. CC the list

2011/5/29 henanwxr <henanwxr@hotmail.com>:
> Hi Daniel, I have post my questions on xen-devel but nobody reply. So I turn
> to you for help.
> 1. Does hvmoader need EPT for address translation when it  is running?
If you are talking to pure HVM Guest then yes.
> 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?
Yes
> 3. If hvmloader needs EPT, where we construct EPT structure for it? I can't
> find correlative part  in code flow.
The address translation is not done by hvmloader, hvmloader is only
used to deploy data to memory, the translation is done via Hypervisor
aided by hardware.



-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about EPT translation
  2011-05-27 16:17 Question about EPT translation confucius
@ 2011-05-30  8:42 ` Tim Deegan
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Deegan @ 2011-05-30  8:42 UTC (permalink / raw)
  To: confucius; +Cc: xen-devel

Hi,

At 09:17 -0700 on 27 May (1306487843), confucius wrote:
> 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.

> 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.

-- 
                                         Tim Deegan <tjd@phlegethon.org>
                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 ]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-30  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-27 16:17 Question about EPT translation confucius
2011-05-30  8:42 ` Tim Deegan
     [not found] <BLU163-ds373A534D93901C3E0FB82DE780@phx.gbl>
2011-05-29 21:49 ` Daniel Castro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).