From: Sai Suresh <saisuresh@gmail.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: accessing domain's page contents from hypervisor
Date: Thu, 12 May 2005 10:45:18 -0500 [thread overview]
Message-ID: <b3acd07605051208452dea8cf6@mail.gmail.com> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3FA0@liverpoolst.ad.cl.cam.ac.uk>
[-- Attachment #1.1: Type: text/plain, Size: 1312 bytes --]
Actually, I was passing the machine address in that variable :) I was using
the code to debug, and didnt bother to change the variable name. Its type is
unsigned long. It seems to contain a valid machine address, as it fell in
the range between alloc_start and alloc_end that is allocated to a domain.
On 5/12/05, Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk> wrote:
>
>
> > 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.
>
> map_domain_mem takes a machine address
>
> Ian
>
> > /*----------------------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: 2441 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 prev parent reply other threads:[~2005-05-12 15:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 10:45 accessing domain's page contents from hypervisor Ian Pratt
2005-05-12 15:45 ` Sai Suresh [this message]
2005-05-12 15:57 ` Mark Williamson
-- strict thread matches above, loose matches on Subject: below --
2005-05-12 10:50 Pradheep K E
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=b3acd07605051208452dea8cf6@mail.gmail.com \
--to=saisuresh@gmail.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--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.