From: Sai Suresh <saisuresh@gmail.com>
To: xen-devel@lists.xensource.com
Subject: accessing domain's page contents from hypervisor
Date: Thu, 12 May 2005 03:59:43 -0500 [thread overview]
Message-ID: <b3acd0760505120159701df3dd@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 795 bytes --]
Hi,
I was trying to read the contents of a domain's L1 page table page from
hypervisor.
The system reboots whenever I dereference the contents of a page.
I use the map_domain_mem and unmap_domain_mem functions before and after I
dereference it.
Any suggestions on the possible reasons would be really helpful.
Thanks,
Sai
/*----------------------code---start------------------------------*/
unsigned long * pg;
int i;
list_for_each_entry(page, &d->page_list, list)
{
if ( (page->u.inuse.type_info & PGT_type_mask) == PGT_l1_page_table){
pg = (unsigned long *) map_domain_mem(domain_id);
for(i=0; i<1024; i++) {
if( ( pg != NULL) && (pg[i] & 0x00000041) )
count++;
}
}
unmap_domain_mem(pg);
}
/*----------------------code---end------------------------------*/
[-- Attachment #1.2: Type: text/html, Size: 1621 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2005-05-12 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 8:59 Sai Suresh [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-12 10:45 accessing domain's page contents from hypervisor Ian Pratt
2005-05-12 15:45 ` Sai Suresh
2005-05-12 15:57 ` Mark Williamson
2005-05-12 10:50 Pradheep K E
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3acd0760505120159701df3dd@mail.gmail.com \
--to=saisuresh@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.