WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] accessing domain's page contents from hypervisor

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] accessing domain's page contents from hypervisor
From: Pradheep K E <pradheep.ke@xxxxxxxxx>
Date: Thu, 12 May 2005 05:50:31 -0500
Delivery-date: Thu, 12 May 2005 10:51:06 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DfmvXo14Fi5Qj2HcZp/KrngnYQRbwKM1FqzPJxX1KHB3H/2bD0MyTVZSkQ2FA2MqnL4iBjTELqB/F/gJvhocoofr3ilUNtaJOSwnuLhEQwIpTgiE/qIPfgVVtblMQbli+HTDvgoNPrsmuE8ypwuMJFtxT8l11068KGfRuWln5/o=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Pradheep K E <pradheep.ke@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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------------------------------*/

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel