From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pradheep K E Subject: Re: accessing domain's page contents from hypervisor Date: Thu, 12 May 2005 05:50:31 -0500 Message-ID: Reply-To: Pradheep K E Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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 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) =3D=3D PGT_l1_page_t= able){ =20 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------------------------------*/