From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sai Suresh Subject: accessing domain's page contents from hypervisor Date: Thu, 12 May 2005 03:59:43 -0500 Message-ID: Reply-To: Sai Suresh Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1174876369==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1174876369== Content-Type: multipart/alternative; boundary="----=_Part_5417_23876201.1115888383758" ------=_Part_5417_23876201.1115888383758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I was trying to read the contents of a domain's L1 page table page from=20 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= =20 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) =3D=3D PGT_l1_page_table){ pg =3D (unsigned long *) map_domain_mem(domain_id); for(i=3D0; i<1024; i++) { if( ( pg !=3D NULL) && (pg[i] & 0x00000041) ) count++; } } unmap_domain_mem(pg); } /*----------------------code---end------------------------------*/ ------=_Part_5417_23876201.1115888383758 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

I was trying to read the contents of a domain's L1 page table page from hyp= ervisor.
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) =3D=3D PGT_l1_page_table){
       
            pg =3D (= unsigned long *) map_domain_mem(domain_id);
             fo= r(i=3D0; i<1024; i++) {
            &nb= sp;   if( ( pg !=3D NULL) &&  (pg[i] & 0x00000041) )
            &nb= sp;   count++;
            &nb= sp; }
         }
         unmap_domain_mem(pg);
     }
/*----------------------code---end------------------------------*/
------=_Part_5417_23876201.1115888383758-- --===============1174876369== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1174876369==--