From: Jody Belka Subject: Re: Re: almost working Date: Fri, 9 Jul 2004 06:19:20 +0000 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040709061920.GA8607@faith.gentoo.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir Fraser Cc: Ian Pratt , "xen-devel@lists.sourceforge.net" List-Id: xen-devel@lists.xenproject.org On Wed, Jul 07, 2004 at 08:10:10AM +0100, Keir Fraser wrote: > > > Seeing this msg i cloned down the latest (at the time) rev from bk. After > > > rebuilding xen, my dom0 and domU kernels, and all the tools, I tried it > > > out. Unfortunately i couldn't even start an unpriveleged domain any more. > > > Logs of xend tracing and the relevant command window are attached; hope > > > they're helpful in tracking down the problem. > > Somehow related to specifying more than one VBD when creating a new > guest. If you specify just one then it works. Hopefully not hard to > track down. After spending 2 solid hours slogging away at this in the early hours of this morning (or late late last night if you prefer), i tracked it down. To my eyes it looks like it had the potential to muck about with more than just VBD's, and that's just what was triggering it in this case. Here's a patch for it: --- tools/python/xen/xend/server/controller.py Fri Jul 9 08:06:52 2004 +++ tools/python/xen/xend/server/controller.py.new Fri Jul 9 08:06:24 2004 @@ -178,7 +178,7 @@ resp = self.responders[0] if resp.mid > mid: break - self.responders.pop() + self.responders.pop(0) if resp.mid < mid: print 'callResponders> Out of order:', resp.mid, mid resp.error(OutOfOrderError()) On a seperate matter, i always have to apply this patch to a new clone of xen-unstable or stuff doesn't work. Am i the only one having this trouble, and if so, any ideas why? --- tools/python/xen/xend/XendDomainInfo.py Fri Jul 9 08:10:38 2004 +++ tools/python/xen/xend/XendDomainInfo.py.new Fri Jul 9 08:10:18 2004 @@ -49,6 +49,20 @@ lines.append(line) return lines +def readline(fd): + """Version of readline safe against EINTR. + """ + import errno + + while 1: + try: + return fd.readline() + except IOError, ex: + if ex.errno == errno.EINTR: + continue + else: + raise + class VmError(ValueError): """Vm construction error.""" -- Jody Belka knew (at) pimb (dot) org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com