[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.