- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, I'm not really sure if this is a valid question in this forum but how can I find the first free entry in the PTE?
I was looking the volume 3A of intel manuals for some flag, but nothing. Can you help me?
Regards,
Regards,
irp
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I don't have a direct answer for your questions yet. After searching around, I found a couple of threads that could provide some hints for your questions. Here are the two existing threads in this forum:
EPT write back memory type and Machine Check exception
-Thai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found out how to do that, thanks anyway!
irp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great,is this something that you can share for other to learn from your finding?
Thanks,
-Thai
Thanks,
-Thai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes sure. I will try, because I don't really know this method is correct.
First I check for the pte entry looking for the descriptor entry with PS=0
*pdeB = __CR3_READ(pdeBase);
oldPdeB = *pdeB;
for (*pdeB; *pdeB < MAX_PTE_SIZE; *pdeB++) {
if (pdeB[7] == 0) break;
continue;
}
*pdeB = __CR3_READ(pdeBase); oldPdeB = *pdeB; for (*pdeB; *pdeB < MAX_PTE_SIZE; *pdeB++) { if (pdeB[7] == 0) break; continue; }Then I just check for the first table entry with preset flag set (it must be one to map a 4kb page)
*pteBase = __SET_PDE(*pdeB);
oldPteBase = *pteBase;
for (*pteBase; *pteBase < MAX_PTE_SIZE; *pteBase++) {
if (pteBase[0] == 1) break;
continue;
}
Maybe I'm missing something, so it that case, help me.
Thanks,
irp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for sharing! You can also check on http://www.xen.org/products/xen_source.htmlfor more ideas.
-Thai
-Thai

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page