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

Re: [Xen-devel] questions about adding MP support to gdbserver


  • To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

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