WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Questions on EPT dump and creation

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Questions on EPT dump and creation
From: YAO <yffbrave@xxxxxxxxx>
Date: Fri, 22 Jul 2011 16:45:08 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 22 Jul 2011 01:45:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=idLMX7RKP/flyVWz7nFYPU7EMWwoo60dgBuesY+l1Zw=; b=IfiX/jsurEaAu6HLQXSjjtcr9DCSOlMGGj7kU2XQQvo3FrMQVN8tD6Oq8iUzscOebT plb7+FD1QZlSZFCZn74q3uGnr6ZPHZ+eLCyP41T894VU20ZC0FuMnbQ6BnzstqGh1SsV whiIk7zVDNrDT2CVhqikl14WDhE5UluQODsEU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110720082234.GA2688@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CALchwUcx0Ydhv4C+U=h3kDZCSahBF_3ydUJ4-4+t7fY6iq-vaw@xxxxxxxxxxxxxx> <20110718152609.GC18276@xxxxxxxxxxxxxxxxxxxxxxx> <CALchwUeZkTtpLk9dXDbs+yOLyhT2d0=s-eOAdtWeHSLnFN7NSw@xxxxxxxxxxxxxx> <20110719112503.GG18276@xxxxxxxxxxxxxxxxxxxxxxx> <CALchwUfZXMaXG3rhHhP=aFdPncNrbvjc66=a4bjRTNdeLRXk9w@xxxxxxxxxxxxxx> <20110720082234.GA2688@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Tim
Thanks for your reply, I reviewed my code and found some confusing things:
We know the p2m top-level page is allocated in function "p2m_alloc_table" which called p2m_alloc_ptp, 
then the eptp can be assigned to point to this page.
An example looks like "mfn of page = 0xd4ec2, eptp = 0xd4ec201e" (I have 4G mem, Xen is 32bit PAE)

But when I allocate my p2m_top page, the mfn looks very strange----"mfn = 0x117b21".
I use "ept_set_middle_entry" to allocate pdp and get the mfn of pdp is "0x117b20". So is the case of allocating pd.

How could xen allocate a mfn beyond the total memory without any warning?
When I dump my page, I need to use map_domain_page. But it seems like I did map successfully using these mfn's.
That's puzzling.

Wait for your reply,
Yao

2011/7/20 Tim Deegan <Tim.Deegan@xxxxxxxxxx>
At 15:37 +0800 on 20 Jul (1311176224), YAO wrote:
> Many thanks for your tip, yes, I didn't cope with the levels properly. I
> have fixed it.
> But here's another problem. Since I have a full ept copy, if I replace the
> system eptp with my eptp,
> the domU will still be running like nothing happened. Now the domU may be
> compromised, it didn't response to any keystroke or click...
> Did I miss something when switching the eptp to and back?

Maybe?  This isn't the kind of bug I can fix by email; I think you need
to dig into it yourself.

Tim.

--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel