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-ppc-devel

[XenPPC] Remapping xenheap pages into dom0.

To: XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [XenPPC] Remapping xenheap pages into dom0.
From: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Nov 2006 16:47:59 +1100
Delivery-date: Sun, 12 Nov 2006 21:48:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
Howdy all,
        I'm having problems getting what should be a reasonably
fundamental operation working.

I have a set of xenheap pages that I'm initialising and then attempting
to map in to dom0 (This is for hcall tracing [ xen/common/trace.c ])

If I dump that pages (or parts thereof) from xen I get the expected
contents, when trying to dump them from the dom0 kernel I get random
data.

So my question is should share_xen_page_with_guest() work for xenheap
pages?

I'm pretty confident that share_xen_page_with_guest() works as it's used
for grant tables.
Page in xen:
memdump(): 0000   0xa5a5 0xa5a5 (0x734000)
memdump(): 0004   0xa5a5 0xa5a5 (0x734000)
page in dom0 kernel:
memdump(): 0000   0x0000 0x0001 (0xf7fdf000)
memdump(): 0004   0xffff 0xffff (0xf7fdf000)

the userspace tools are locating the correct mfn for the pages I'm
trying to map.

Does anyone have any ideas on what I can look at to work out why I'm not
getting that page I think I should be getting?

Also, this may or may not be related.

If I don't call down to share_xen_page_with_guest() I would have
expected to get some form of oops or crash, but the machine exhibits the
same behavior.  Actually that probably indicates that I'm getting a
kernel pages rather than xen page.

Yours Tony

   linux.conf.au       http://linux.conf.au/ || http://lca2007.linux.org.au/
   Jan 15-20 2007      The Australian Linux Technical Conference!


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

<Prev in Thread] Current Thread [Next in Thread>