[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Sai Suresh <saisuresh@xxxxxxxxx>
  • Date: Thu, 12 May 2005 03:59:43 -0500
  • Delivery-date: Thu, 12 May 2005 08:59:17 +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; b=B1nWPvIX54pCAyg//QsTrHtacMHnRECSLWt+uVOXaG/igy8rOsuHZMm2p3Zm0Y2YzG7x3He9ijWGlqtnlTLBlJ6yplnfflAzBMHypwrkxqp/1ozrqbC/IrB53DX2TO3hjOWQfCrXd49RF2579nJDA+zMtrGVHemcRpMhVeAGlyw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.