From owner-freebsd-xen@freebsd.org Tue Feb 23 15:09:47 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 0078CAB10AE for ; Tue, 23 Feb 2016 15:09:47 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 887D88BE for ; Tue, 23 Feb 2016 15:09:46 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id b205so203814382wmb.1 for ; Tue, 23 Feb 2016 07:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=l7R6cfc4GvNmlPhJ/+ibWKm9dii4hY3WIgyyroRwqbs=; b=U0Dn3WO2AkFo/lU9fpEmVy2CcA7f2cI2JG9xVSC9dhzpfg5ZqxK5IQkNY46nS5kQ+A 3hjbMk4ctIOLnhypflhF72u9x1HdekIJ2Q/D/6DwfAb1MH6/ZYiavzwsIYUwYHm52v4c i4iCNOTCe3b1ju5GpoVQ8U7RQbRzOCbU9PuyfKl8McPAgUf4vPUAm4fGWvTcWKSaawqu AAeRJ+cuSVYTOy5yB+HHheYAjRG9LGuFVV0VDZdO4u/fS6cLZeMBdttz2l/eoTzEKMZI eptSim+IbHxpdXTB4lGlWeurxc6BKQzmm3O9MrB8OaDvKx4dM5iXRcCw9N5+CnxAPvgI GJuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=l7R6cfc4GvNmlPhJ/+ibWKm9dii4hY3WIgyyroRwqbs=; b=B2AZcYuM2UE4o4DOEJ6HS1xPix7PyR8K/Xu8LAIUojUa1TXvB+9p9SWhT0h8WlzwNx 7g7X+ESv4cAinXGoFxZNOaF7GPlxKV02wkf1GEmHXurlukmeROH6guT1Z/9XlnanGKGS jjCXYK+5Qk7nyzT6G05htKZFu11HgQMNmqtbnqgbs/BE0bOQmzTbgv0jZhRAyyC4oikd JRaVBgBjP2gvNDfVOsRdcQgRCcm1FITV8G2kCPd2FuFPHxCXER/r5j7RmMfey+9pNoaV KSAJQhBMu8yLdrMWzN1asUh14K1HJ4L/PhXcNiFV5WH/dfPUtmVE29+/AyLEcY2fPHwJ YZGg== X-Gm-Message-State: AG10YOQ1LdKBJSG9Es4mT80ykQNlrAzeB3hvP/2yXCAgWhwGJx2k42/+CkTjOy6aOsIPuw== X-Received: by 10.28.222.68 with SMTP id v65mr19877232wmg.66.1456240185013; Tue, 23 Feb 2016 07:09:45 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id gt7sm30248237wjc.1.2016.02.23.07.09.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 07:09:44 -0800 (PST) From: =?UTF-8?Q?Gustau_P=c3=a9rez?= Subject: Re: Porting the block-iscsi hotplug script To: 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> Message-ID: <56CC7637.3080408@gmail.com> Date: Tue, 23 Feb 2016 16:09:43 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56CC32E5.5010101@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Tue, 23 Feb 2016 15:09:47 -0000 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. Gustau [1] http://pastebin.com/Ar9Vjy6X [2] ttps://people.freebsd.org/~royger/xen_ins/ [3] https://people.freebsd.org/~royger/freebsd-hotplug/0001-blkback-add-support-for-hotplug-scripts.patch