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] getdomaininfo_list() and xm top

To: XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [XenPPC] getdomaininfo_list() and xm top
From: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Sep 2006 14:23:22 +1000
Delivery-date: Mon, 04 Sep 2006 21:23:39 -0700
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
Hi All,
        I've been looking at the "xm top" command.  Currently this fails
with "Failed to retrieve statistics from libxenstat".  libxenstat makes
a getdomaininfo_list hypercall.  Doing a little digging it seems the
copy_to_guest_offset() call (dom0_ops.c:437) is returning -EFAULT.

If I compare getdomaininfo with getdomaininfo_list it looks to me that
the main difference is the destination for of the results.
getdomaininfo(), overwrites the u_dom0_op of the hypercall
getdomaininfolist(), places the results into a userspace buffer, whose
address comes in via the u_dom0_op.

I've poked around in xencomm_copy_to_guest and it seems that all the
addresses[] are XENCOMM_INVALID.  When makes be think that the address
we're trying to write to is bogus for some reason.

I'm not really sure I know what my question is other than to ask for
pointers on how narrow down what's missing on the ppc side to make this
type of hypercall work.

I'm not sure I'm on the right track here but I don't think that we're
passing copy_to_guest_offset(), a pointer that can successfully be cast
as a xencomm_desc.

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>