From: Pradheep K E <pradheep.ke@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: accessing domain's page contents from hypervisor
Date: Thu, 12 May 2005 05:50:31 -0500 [thread overview]
Message-ID: <f1ec958c05051203503b4cfa1f@mail.gmail.com> (raw)
I have seen a very similar situation too. When I tried to dereference
a domain's page from Xen, after mapping it to a virtual address is
Xen, my machine also booted. I think, this means some locked data
structure is being accessed. Anyone, any ideas?
---------------------------------------------------------------------------------------------------
> 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------------------------------*/
next reply other threads:[~2005-05-12 10:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 10:50 Pradheep K E [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 8:59 Sai Suresh
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=f1ec958c05051203503b4cfa1f@mail.gmail.com \
--to=pradheep.ke@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.