From owner-freebsd-xen@freebsd.org Thu Feb 25 19:30:59 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FDA0AB3AE9 for ; Thu, 25 Feb 2016 19:30:59 +0000 (UTC) (envelope-from prvs=856d7c560=roger.pau@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Verizon Public SureServer CA G14-SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C72B01504 for ; Thu, 25 Feb 2016 19:30:58 +0000 (UTC) (envelope-from prvs=856d7c560=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,498,1449532800"; d="scan'208";a="334582026" Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Gustau_P=c3=a9rez?= , FreeBSD XEN References: <553DEB97.5000300@entel.upc.edu> <5540A053.4080409@entel.upc.edu> <5540F3FC.80606@citrix.com> <5541FC8A.8080009@citrix.com> <5542365D.10403@entel.upc.edu> <55423ECD.6000404@citrix.com> <5556F21D.2050005@entel.upc.edu> <555EEFBA.5080902@citrix.com> <555EF542.3090002@citrix.com> <555F9B3F.1000600@entel.upc.edu> <55602512.1090702@citrix.com> <56C6FA2F.8040900@gmail.com> <56CAC8CB.8030107@gmail.com> <56CADEDA.4050007@citrix.com> <56CB0057.1060509@gmail.com> <56CB041E.1020009@citrix.com> <56CB2D90.5080809@gmail.com> <56CB34BA.6060809@citrix.com> <56CC24BD.6050609@gmail.com> <56CC32E5.5010101@citrix.com> <56CC7637.3080408@gmail.com> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56CF5668.6090605@citrix.com> Date: Thu, 25 Feb 2016 20:30:48 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56CC7637.3080408@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA1 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 19:30:59 -0000 El 23/2/16 a les 16:09, Gustau Pérez ha escrit: > > Resending it to mailing list. > > El 23/02/16 a les 11:22, Roger Pau Monné ha escrit: >> >> I need to update the port anyway (will try to do it tomorrow), so I can >> also add the patches while there. >> >>> Regarding the hotplug stuff, I reworked the patches to the kernel (it >>> applied but with displacements) and two of the xen-tools ones. Do you >>> want me to post them somewhere? >> Yes please, although I'm not sure when I will have time to work on those. >> > Hi Roger, > > I got some time to test the changes, but I'm hitting some problems: > > * There's something wrong with the hotplug patches (I guess the > xen-tools patches). xl complains about a block script missing under > ${LOCALBASE}/etc/xen/scripts (IIRC). > * If I restore xen-tools to version on the ports tree, but I keep the > kernel hotplug patch, when starting the first domU domain the box > panics because of xenwatch. > > The panic is here [1]. The addr2line tells me the problem IP points > to sys/dev/xen/xenstore/xenstore.c:1020. > > I don't know where this comes from, because I did set up a core i5 > box (installed it in a rush, installed the xen packages from the main > repo) and I was able to create a domU HVM domain with no problems. > > To recap, the offending box has: > > * xen-kernel + patches at [2] (needed with this machine because of the > problem while at the ata code) > * FreeBSD kernel + hotplug patch at [3] > * xen-tools from the ports tree. If I apply the hotplug patches (I'll > post the rebased versions in a moment) the machines does not panic > but fails about some script not found > > I hope I made the current situation clear. I the meantime I'm gonna > revert [3] and test what happens. > > If you need any further debugging info let me know. Thanks, I've also realized about this error and fixed it in new version. I've just send the libxl side of this work for review: http://lists.xenproject.org/archives/html/xen-devel/2016-02/msg03669.html I've also realized that at least one change is needed in the hypervisor for this to work properly, I will prepare the series so that you can apply them to the xen-kernel and xen-tools ports, together with the FreeBSD blkback changes that are needed for this to work. I will hopefully be able to send them tomorrow morning. Roger.