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] questions about adding MP support to gdbserver

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] questions about adding MP support to gdbserver
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Mon, 14 Nov 2005 09:33:24 -0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: Mon, 14 Nov 2005 17:34:53 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VANKjblAZkJpSxanF3RtcFE1BllsUmf1/BRJh32x1NZKMJ4ANSS5LboUkPoVGNxMUW2utmmJlUAn5Q9VA4Kc4USUmNUix2xucraDbPnBE0BGi5HURFc3rHq1rSidDpEkLnG3W8TPn+pb/lfrDbbUXZtqnj4lFr/lEZDsj3Xv3ps=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <54a9077430c646b0c4ce5a421ffcdbfd@xxxxxxxxxxxx>
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>
References: <b1fa29170511132125g1a62cbe5yfd5f516a876c2361@xxxxxxxxxxxxxx> <54a9077430c646b0c4ce5a421ffcdbfd@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Polling every breakpoint seems rather unwieldy. However, given that this will probably never be used with more than 4 processors it will work fine.

Thanks.
                     -Kip

There are examples in xenstat, but it uses its own interface library
(not libxenctrl) so it will probably only confuse. You have the right
approach described above anyway:
  1. getdomaininfo
  2. for (i = 0; i <= info.max_vcpu_id; i++)
  3.     getvcpuinfo / getvcpucontext
  4.     info.online tells you whether the vcpu is up or down
  5.     either way, getvcpucontext will succeed if the domU has booted
that vcpu

  -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>