From owner-freebsd-xen@freebsd.org Mon Feb 22 08:37:35 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 B9F99AB0566 for ; Mon, 22 Feb 2016 08:37:35 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 5131617AA for ; Mon, 22 Feb 2016 08:37:35 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id c200so159035189wme.0 for ; Mon, 22 Feb 2016 00:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=LoEPCV+xS/RUQxT8ATQiGH5g6RaApE9lVSROUFsaeCA=; b=hDoke2MuSGFPy2+0FjVdUh3dvhAoHEmJIvh3hBLE3SkkRc3prip3qM8sTIWNCeKJVb pk7lze7/0eMtNWWDyq3YGz7+41yR2VEWqXKnV7krvhfkKppErEAAR1DlSJuVKLbP+oEX P/zWB1i+g7AOTF0+KC7EGqmqDP9wFFT6aUV6II0QLZdHrEcaJZjBvx3O3oFZoFI23yQk OH+Y0ch/+csm7K4vf8lA5L2WJlmuLdSsSXS3IPRk+Rcyc2H9PTjMg4QW4Qc4lO57WTtX JYzPuR9DG58GihRt6XGV53BHw2T4sfptedPbYHOL12kLbn3Z3hQz/d9yPqlG30679bAx wqqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=LoEPCV+xS/RUQxT8ATQiGH5g6RaApE9lVSROUFsaeCA=; b=GqmkKleYAh+cGbcCmTAwQiZh8yFpgTZrvtFjO8jePOtS7fzk03csIqqbi+KCaBEbPB PdA7zj9UwqsgdEkcBxkAz4SDespW3DAtOnS+P32UzLBvbD9qtzw/pAStMcnoB/H2sqB3 Og0vJSZZVLHzlhk2zKLhKF1X2hCe+/W1K6B0Dk8s5kj0d2F6/0y54oOWVLIYXb5achLr 9mo6C2fs4hKriPu9ABF48jT9t0mN1rQmeP7lDDJZktqzOu7lJgxy3LXR2Bjc9KnQcopG ct89qzo6FVI2gSCD+WEZ85Qo428hdDL0dsKfYubZZEwi74FfYgjZpV5d0TnfBKOFM/Zl bpLw== X-Gm-Message-State: AG10YOQsrTfr2tJJGy25apHt5nE1WgaOx3R3F12whhJ4zdqffBthzddr4H+z3DwCBpz2Lw== X-Received: by 10.194.133.201 with SMTP id pe9mr26179218wjb.101.1456130253743; Mon, 22 Feb 2016 00:37:33 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id s2sm23542157wjs.39.2016.02.22.00.37.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Feb 2016 00:37:32 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , =?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> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CAC8CB.8030107@gmail.com> Date: Mon, 22 Feb 2016 09:37:31 +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: <56C6FA2F.8040900@gmail.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: Mon, 22 Feb 2016 08:37:35 -0000 El 19/02/16 a les 12:19, Gustau Pérez ha escrit: > I'm retaking this issue. I have an spare dual Xeon Intel(R) Xeon(R) > CPU E5-2420 box I can use for this. It currently uses 10.2-prerealse (as > of july 2015 more or less) but I can update it to head if necessary. Hi, Sorry, the box has two E5620 CPUs. I've checked in the ark and they support vt-d, but the xen kernel complains about the iommu (that is, vt-d support). Apparently iommu is there (acpidump -t | grep DMAR shows something). I tried booting forcing iommu [1] but no joy. On the other hand I'm still not sure whether the hotplug patches still need to be applied or not, I've checked them and I'd say that both the kernel and xen-tools need to be patched, am I right? G [1] /boot/loader.conf -> xen_cmdline="dom0_mem=4096M dom0_max_vcpus=4 dom0pvh=1 com1=115200,8n1 iommu=force,no-intremap guest_loglvl=all loglvl=all" From owner-freebsd-xen@freebsd.org Mon Feb 22 10:12:51 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 547EBAAF587 for ; Mon, 22 Feb 2016 10:12:51 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (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 0DE13110E for ; Mon, 22 Feb 2016 10:12:50 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,483,1449532800"; d="scan'208";a="339889711" Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Gustau_P=c3=a9rez?= , =?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> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56CADEDA.4050007@citrix.com> Date: Mon, 22 Feb 2016 11:11:38 +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: <56CAC8CB.8030107@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 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: Mon, 22 Feb 2016 10:12:51 -0000 El 22/2/16 a les 9:37, Gustau Pérez ha escrit: > > > El 19/02/16 a les 12:19, Gustau Pérez ha escrit: >> I'm retaking this issue. I have an spare dual Xeon Intel(R) Xeon(R) >> CPU E5-2420 box I can use for this. It currently uses 10.2-prerealse (as >> of july 2015 more or less) but I can update it to head if necessary. > > Hi, > > Sorry, the box has two E5620 CPUs. I've checked in the ark and they > support vt-d, but the xen kernel complains about the iommu (that is, > vt-d support). Apparently iommu is there (acpidump -t | grep DMAR shows > something). I tried booting forcing iommu [1] but no joy. It might be that the IOMMU has an errata and Xen refuses to enable it. Can you provide the serial output when you try to boot Xen + FreeBSD? You might have to add console="com1,vga" to your xen_cmdline (although AFAIK that's the default). The command line looks fine IMHO. > On the other hand I'm still not sure whether the hotplug patches > still need to be applied or not, I've checked them and I'd say that both > the kernel and xen-tools need to be patched, am I right? Yes, both series need to be applied. If you find issues applying them ping me and I can rebase them if needed. Roger. From owner-freebsd-xen@freebsd.org Mon Feb 22 12:34:34 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 D5448AB0399 for ; Mon, 22 Feb 2016 12:34:34 +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 6E5541822 for ; Mon, 22 Feb 2016 12:34:34 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id b205so153497079wmb.1 for ; Mon, 22 Feb 2016 04:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=hRxMQS20Ve3e7mJDtee/SyeNj0Hn6NLTyjz0EeiFh80=; b=X9d/X3Emkv8y6zGVNzLVAiUkr5wmBYqqF0EtdYkaPCThzuyjL+cntOFIzHPOUCY0Bx VBqCzDbujL1l/wnXFyU6ahY3mQ3LA2deO657IS7hyJbl2+1xWrqT7fS70vmteiOpRq0W 2Gf1XQsVPtU9XU6mBWkyTWd0Gq4IINWClvnm2HozHwOYU/K4FhGcK2rL352xfbL+K+j6 kJMssC3l5ViuOMxSNUnAiTJM5byR7d3bXKlP2CacgeH39RgyIKfCJTRhEKlXo4oOLEoC psZ/Hixel1uYh9G4+sesg33N9vvqlLQgGJwaBvfivEumyypZHVEyMplZAiOAvbzAjeLU 1RHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=hRxMQS20Ve3e7mJDtee/SyeNj0Hn6NLTyjz0EeiFh80=; b=FpuhqPVkO9i/9OefdFUdQtXOvSrQV4vT4wgP2CwnNQcpRpCofNUzFdvaqNsYp0n+uL mmjQPrlxlIt0aAr/Nm4+jBV86R+XWBJ86BV0zfArG8z8WN3un56IJDWl7s40zLNUMGdr njw3Dpe4fZ2fCLvV/uOTHhK5RhNdeZwSEJcr2XNhpR/Zed+/gBFJMHF0xAUMuJJfIN3T poYRh99w68ScrBKTS+ad079QSb9wK2ZmzB0A3gGnwwOZXSp5ILe1acANeeW1Nbrjz7cI AMfCiGvOyYd4E5fA6C2S+IycrZIIJqV6llrWJgV4aIHzegclahfjIDW9fr1VjhngAihb xK3g== X-Gm-Message-State: AG10YOTD+CF6kaT9RnGM6bVKgnISnxKyUaRnfwjHFLqs1oLS5nSmNrqb7ojBe7jQ6cgV4g== X-Received: by 10.194.60.20 with SMTP id d20mr31566498wjr.109.1456144472921; Mon, 22 Feb 2016 04:34:32 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id t8sm24452445wjy.41.2016.02.22.04.34.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Feb 2016 04:34:32 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , 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> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CB0057.1060509@gmail.com> Date: Mon, 22 Feb 2016 13:34:31 +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: <56CADEDA.4050007@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Mon, 22 Feb 2016 12:34:35 -0000 > It might be that the IOMMU has an errata and Xen refuses to enable it. > Can you provide the serial output when you try to boot Xen + FreeBSD? > You might have to add console="com1,vga" to your xen_cmdline (although > AFAIK that's the default). > Hi Roger, I was able to get a dump of the output via the serial console [1]. If I force the detection of the iommu with [2] the system is able to boot the domU kernel and then it panics [3], it would appear it panics when detecting atapci0. Here I'm lost. Greets, Gustau [1] http://pastebin.com/yt27y6hM [2] iommu=force,no-intremap [3] http://pastebin.com/BQ8Y1ViT From owner-freebsd-xen@freebsd.org Mon Feb 22 12:50:43 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 ACD10AB0AE4 for ; Mon, 22 Feb 2016 12:50:43 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (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 4A49C1137 for ; Mon, 22 Feb 2016 12:50:42 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,484,1449532800"; d="scan'208";a="339914176" 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> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CB041E.1020009@citrix.com> Date: Mon, 22 Feb 2016 13:50:38 +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: <56CB0057.1060509@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 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: Mon, 22 Feb 2016 12:50:43 -0000 El 22/2/16 a les 13:34, Gustau Pérez ha escrit: > >> It might be that the IOMMU has an errata and Xen refuses to enable it. >> Can you provide the serial output when you try to boot Xen + FreeBSD? >> You might have to add console="com1,vga" to your xen_cmdline (although >> AFAIK that's the default). >> > Hi Roger, > > I was able to get a dump of the output via the serial console [1]. If > I force the detection of the iommu with [2] the system is able to boot > the domU kernel and then it panics [3], it would appear it panics when I guess you mean Dom0 here instead of DomU, because the log you provided shows that Dom0 is not even able to finish the boot process. > detecting atapci0. Here I'm lost. Right, the interesting bit is: Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff804169a1 stack pointer = 0x28:0xfffffe0120435a30 frame pointer = 0x28:0xfffffe0120435a90 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, IOPL = 0 current process = 12 (irq23: atapci0) trap number = 9 panic: general protection fault cpuid = 0 Uptime: 1s Is there any chance you can use a kernel with debug options enabled (ddb)? This way we should be able to get a back trace of the call chain. Also, can you provide the output of running: # addr2line -e /path/to/kernel/debug/sym 0xffffffff804169a1 The kernel symbols are usually stored at /usr/lib/debug/boot/kernel/kernel.debug in modern FreeBSD versions. Roger. From owner-freebsd-xen@freebsd.org Mon Feb 22 15:47:32 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 CADB7AB0E22 for ; Mon, 22 Feb 2016 15:47:32 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 5E79C1CDA for ; Mon, 22 Feb 2016 15:47:32 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id g62so162743325wme.0 for ; Mon, 22 Feb 2016 07:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=PESgOGGtAU5rrF2P7CHoGWff5j1CleCRnBYhoCWOXUM=; b=YdpCy6GrRlZGTshYNYOrW8Ud5G5gprbDVIv1UOWK8intaON2cF3qyQfgCqYIi7Vhco dkg1r5gJ+L3V9KZofqR0najKltYlbbPfNGwL8P6utoCzwp8M8OQSr2tMXbQ0sg5vgJHo NR+jKIGLYnhmr9gvr9bZzgqpa8NG6QXQSdaeGP2FwWdywugZLcAcnSzNmvF227Nanp+m bENtnCawdnYy1s3JqdRCHNAVsv2Do+ZAjIzyglcoXC1djjkBjLG5YdTeIAF6wq+moGXs ZC5ajpA+VdlvHGbH4Kl1hLZYO17EgkeakQ3eMNeaMh7m6CdnPE7B8E+8kwpYkNilx1OL qgZA== 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:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=PESgOGGtAU5rrF2P7CHoGWff5j1CleCRnBYhoCWOXUM=; b=b3V1hf+6/yO7f0gsafImXsUq/DICgP9G+deO/gMaOxHbSkXO70dsvUQ6UIkscnNlOI orXlQ5PTAjxQ77Bx9bAHDHRJjISdWKg0BY+HIOaYS3EZt8+xdDHnNaDDI//lP6INm1kS OYmzDZv46HuTXJoyjG1qp0xycYGpaZrRMxZs9nbFeXR2H8rynOSMWTjhKWLIXc1ciyUi O1T0biXlnx+YU7Wus3L2Jv6vJZoeiLTuckRu7a0ph4RaEgEm9n35PAJAe4p6pj/VZYhE Xk4GrNq5MOJ3JVqwseRa3CwC25n0fs14LFlsp9UH9MGtY3LEIRZ7EKQk/Lb8ujQr7X8n ReIg== X-Gm-Message-State: AG10YOQl1jSrIHitmGRth2rZDAm7HWPY9FFFkjPqzRAu/w45CAO6k3AmcRPKIt11y8/B+g== X-Received: by 10.28.156.73 with SMTP id f70mr14291846wme.52.1456156050439; Mon, 22 Feb 2016 07:47:30 -0800 (PST) Received: from [192.168.1.110] (156.Red-83-60-212.dynamicIP.rima-tde.net. [83.60.212.156]) by smtp.googlemail.com with ESMTPSA id m63sm21727076wmc.3.2016.02.22.07.47.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Feb 2016 07:47:29 -0800 (PST) From: =?UTF-8?Q?Gustau_P=c3=a9rez?= Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , 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> Message-ID: <56CB2D90.5080809@gmail.com> Date: Mon, 22 Feb 2016 16:47:28 +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: <56CB041E.1020009@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: Mon, 22 Feb 2016 15:47:32 -0000 El 22/02/16 a les 13:50, Roger Pau Monné ha escrit: > > I was able to get a dump of the output via the serial console [1]. If > I force the detection of the iommu with [2] the system is able to boot > the domU kernel and then it panics [3], it would appear it panics when > I guess you mean Dom0 here instead of DomU, because the log you provided > shows that Dom0 is not even able to finish the boot process. Sure, my mistake. It was certaintly Dom0 domain (the one started by the xen kernel). >> detecting atapci0. Here I'm lost. > Right, the interesting bit is: > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xffffffff804169a1 > stack pointer = 0x28:0xfffffe0120435a30 > frame pointer = 0x28:0xfffffe0120435a90 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, IOPL = 0 > current process = 12 (irq23: atapci0) > trap number = 9 > panic: general protection fault > cpuid = 0 > Uptime: 1s > > Is there any chance you can use a kernel with debug options enabled > (ddb)? This way we should be able to get a back trace of the call chain. Sorry I was unable to get that info earlier, I'm doing this remotely (I have another machine connected bia serial port). BTW, here is the bt [1] > Also, can you provide the output of running: > > # addr2line -e /path/to/kernel/debug/sym 0xffffffff804169a1 > > The kernel symbols are usually stored at > /usr/lib/debug/boot/kernel/kernel.debug in modern FreeBSD versions. The memory position seems to point to /usr/src/sys/dev/ata/ata-all.c:351. This is when locking the ata_channel->state_mtx mutex. If I'm not mistaken (I have no time right now), that would mean the reference to that mutex does not exist? Why would that happen, because of the xen kernel freeing it? Greets, Gustau [1] http://pastebin.com/Xmr8ArCD From owner-freebsd-xen@freebsd.org Mon Feb 22 16:18:09 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 9FF6BAB1A00 for ; Mon, 22 Feb 2016 16:18:09 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (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 2CA981B0F for ; Mon, 22 Feb 2016 16:18:08 +0000 (UTC) (envelope-from prvs=853c61c85=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,485,1449532800"; d="scan'208";a="339973356" 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> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56CB34BA.6060809@citrix.com> Date: Mon, 22 Feb 2016 17:18:02 +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: <56CB2D90.5080809@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: Mon, 22 Feb 2016 16:18:09 -0000 El 22/2/16 a les 16:47, Gustau Pérez ha escrit: > > > El 22/02/16 a les 13:50, Roger Pau Monné ha escrit: >> >> I was able to get a dump of the output via the serial console [1]. If >> I force the detection of the iommu with [2] the system is able to boot >> the domU kernel and then it panics [3], it would appear it panics when >> I guess you mean Dom0 here instead of DomU, because the log you provided >> shows that Dom0 is not even able to finish the boot process. > > Sure, my mistake. It was certaintly Dom0 domain (the one started by > the xen kernel). >>> detecting atapci0. Here I'm lost. >> Right, the interesting bit is: >> >> Fatal trap 9: general protection fault while in kernel mode >> cpuid = 0; apic id = 00 >> instruction pointer = 0x20:0xffffffff804169a1 >> stack pointer = 0x28:0xfffffe0120435a30 >> frame pointer = 0x28:0xfffffe0120435a90 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags = interrupt enabled, IOPL = 0 >> current process = 12 (irq23: atapci0) >> trap number = 9 >> panic: general protection fault >> cpuid = 0 >> Uptime: 1s >> >> Is there any chance you can use a kernel with debug options enabled >> (ddb)? This way we should be able to get a back trace of the call chain. > > Sorry I was unable to get that info earlier, I'm doing this remotely > (I have another machine connected bia serial port). BTW, here is the bt [1] >> Also, can you provide the output of running: >> >> # addr2line -e /path/to/kernel/debug/sym 0xffffffff804169a1 >> >> The kernel symbols are usually stored at >> /usr/lib/debug/boot/kernel/kernel.debug in modern FreeBSD versions. > The memory position seems to point to > /usr/src/sys/dev/ata/ata-all.c:351. This is when locking the > ata_channel->state_mtx mutex. If I'm not mistaken (I have no time right > now), that would mean the reference to that mutex does not exist? Why > would that happen, because of the xen kernel freeing it? AFAICT this is a gp that's injected by Xen when Dom0 tries to execute certain instructions that Xen cannot emulate (INS or OUTS). I've fixed this sometime ago in Xen upstream, but I seem to have missed to add the relevant patches to the port. Can you try to apply the following patches: https://people.freebsd.org/~royger/xen_ins/ To the xen-kernel port and rebuild it? There's no need to apply them to the xen-tools port, this only affects the hypervisor but not the toolstack. Roger. From owner-freebsd-xen@freebsd.org Tue Feb 23 09:22:09 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 5565FAAF2EB for ; Tue, 23 Feb 2016 09:22:09 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 DD3A89A8 for ; Tue, 23 Feb 2016 09:22:08 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id c200so210131712wme.0 for ; Tue, 23 Feb 2016 01:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=vFjGmpS7vBKWf1Q7QIXLEAAnT8eZ4LooUU2t+JCiUo0=; b=aITUOc7puYLxCznFJ7oUt8HCiiaJVKnWcHcMNkU/r5M0sMI7yI0VJzZF80xnvERP4I FIgjCZ6m3xeiWD7zBSJ7FTuIgqKeyeqlH1KFRLPxXOEqZp75oOUS3Z+kiUa/L/lPjqbq aEKu8saRSC2wmz1qNrceWWQARXhGOlJZdeQU5OqdS26kZR4zuPwqaXqGIOjw9MZxeeKM PZpxjmkxysdtQOuJF/GI4HAxg4lATNbcqJa1yylsWFZX2njCCaFwxdsLJQ0ez6gwo52Q 7jNmw9ycVRJlX5MTiOO6ixbWz5ewUd0phPwZtCUfX3gesfvW44RLCQiPD7XIGinVEf8V makA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=vFjGmpS7vBKWf1Q7QIXLEAAnT8eZ4LooUU2t+JCiUo0=; b=cszZx/eOE/xHgmI85lnaaiCHOrwEPInw1pWRYkUyDIfoF5Fc5iSlFahLfh8MVlhSYF ih8cMOlwpSdq4y3lOErDE02udVfTRgJkS4UIEmZgCTfiEP39EIOLKCbDAq9EUkmk8Zs3 rAwxpnEGdaVlCA/uKEzwQ89UdGHhpTHy3af7+p4jVvM3r1ElFHff+6QKmCIAoca84oRG cDyczUQtAxclqfXGlrz1i/x16yRS46PeBa0jxUeuu8BodBa2EZIccOzaan/vfEG8AX8a NVtuMPZHH7fkYdnY9JYZCNEvH6JNyOyt6wr1y0r7Q4Pv2ugZTuzLypuip0me0O9AbqIy fWSA== X-Gm-Message-State: AG10YOSCDexvz83QoLPWO+zWDLSkmQDhAD8mOrjrF+rP7vBpKvzLJPGlDgFGE80/jaYL/g== X-Received: by 10.194.250.103 with SMTP id zb7mr36725756wjc.65.1456219327314; Tue, 23 Feb 2016 01:22:07 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id s66sm2625112wmb.6.2016.02.23.01.22.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 01:22:06 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , 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> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CC24BD.6050609@gmail.com> Date: Tue, 23 Feb 2016 10:22:05 +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: <56CB34BA.6060809@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 09:22:09 -0000 El 22/02/16 a les 17:18, Roger Pau Monné ha escrit: > > AFAICT this is a gp that's injected by Xen when Dom0 tries to execute > certain instructions that Xen cannot emulate (INS or OUTS). I've fixed > this sometime ago in Xen upstream, but I seem to have missed to add the > relevant patches to the port. Can you try to apply the following patches: > > https://people.freebsd.org/~royger/xen_ins/ > > To the xen-kernel port and rebuild it? There's no need to apply them to > the xen-tools port, this only affects the hypervisor but not the toolstack. Hi Roger, I've able to apply those patches to the xen-kernel port and they fixed the panic. Do you want me to send you the port diff o submit a PR? If you submit those yourself, please mind to add them to the EXTRA_PATCHES knob in the port Makefile (I happened to me the first time and that leaded me to think your patches did not fix the problem). 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? Thank you, Gustau From owner-freebsd-xen@freebsd.org Tue Feb 23 10:23:42 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 2D992AB134B for ; Tue, 23 Feb 2016 10:23:42 +0000 (UTC) (envelope-from prvs=854777591=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 D8224117 for ; Tue, 23 Feb 2016 10:23:41 +0000 (UTC) (envelope-from prvs=854777591=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,488,1449532800"; d="scan'208";a="333602876" 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> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= X-Enigmail-Draft-Status: N1110 Message-ID: <56CC32E5.5010101@citrix.com> Date: Tue, 23 Feb 2016 11:22:29 +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: <56CC24BD.6050609@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 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 10:23:42 -0000 El 23/2/16 a les 10:22, Gustau Pérez ha escrit: > > > El 22/02/16 a les 17:18, Roger Pau Monné ha escrit: >> >> AFAICT this is a gp that's injected by Xen when Dom0 tries to execute >> certain instructions that Xen cannot emulate (INS or OUTS). I've fixed >> this sometime ago in Xen upstream, but I seem to have missed to add the >> relevant patches to the port. Can you try to apply the following patches: >> >> https://people.freebsd.org/~royger/xen_ins/ >> >> To the xen-kernel port and rebuild it? There's no need to apply them to >> the xen-tools port, this only affects the hypervisor but not the toolstack. > Hi Roger, > > I've able to apply those patches to the xen-kernel port and they > fixed the panic. Do you want me to send you the port diff o submit a PR? > If you submit those yourself, please mind to add them to the > EXTRA_PATCHES knob in the port Makefile (I happened to me the first time > and that leaded me to think your patches did not fix the problem). 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. Roger. 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 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. From owner-freebsd-xen@freebsd.org Fri Feb 26 08:13:23 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 B76DDAB5931 for ; Fri, 26 Feb 2016 08:13:23 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 4CA1F11C4 for ; Fri, 26 Feb 2016 08:13:23 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id c200so61418764wme.0 for ; Fri, 26 Feb 2016 00:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ViH+0UT5rer6IXiruq7oFMOCny+ik+TOAcYcw39uhPE=; b=eHFL15xpE+X6FSLelrt9KfrRyWGZycTmbH3jzWc/lqArlzKLlCKdcZJ3g9N1daCLRl kMlGL1TDq3cGZN1vBlpUvkKG2qZEIPnJBFymYXGPMBKPW6tJ3CCWgS0pQezNWa/LP/k5 Aos4gf6/VD9zUZs8rIkdrBJcmcR2Wap3y1euCYiza4IJa/tI1dJzd/LUqiz4CGBf6MmU yszPthxFeakvrAe5nNCA1RnsiBb5MSDSufBqIGQhJjPH7XST+uqXtmM0v+rbFgAyZf8F doy9mjUjluFcvUmpQhWeqxqFPcWFtl8DqxXFWy2kdnpfT/uO9jRJ+NKUFqrJGI34BWkW VNig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ViH+0UT5rer6IXiruq7oFMOCny+ik+TOAcYcw39uhPE=; b=NW6aZUsl2vaVs/YjWOEdsuMmDNPwxJyKBMKplM4GgtuLENM1RhcOKW5Yvjy+vPt9RR VfCaPxrS/KOnjSgJHQiR4e76zi39gkVRKMY9THwa9HMSLOTTO3bkU96gDCng3JthFJnn +OV7ctXSm/++509jOu0FzsvCZqCVmkoRYZLp6te6Z+exEYOBrcplOi3+buMRNadCjXYc orFLDp4zjXks9AnECpS58Onof6nsrTIMIsJ/TbSes8goGcYjrFYVU6HB23P/ATugQbVG VXYN23hv6vflsDGvz93vmd37WqaJxcxbtGFti1D4rGRjCYG8e5CPoxz/zxsOHtOIP8UD HxLA== X-Gm-Message-State: AD7BkJK8oowlPnf+uphXVZEsFhvazk+BNogpnQCdiJfDHuRXEwh4bXIqVVwyTQ5eJjKpnQ== X-Received: by 10.194.90.77 with SMTP id bu13mr298411wjb.60.1456474401586; Fri, 26 Feb 2016 00:13:21 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id h132sm1770318wmf.9.2016.02.26.00.13.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 00:13:20 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: "freebsd-xen@freebsd.org >> 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> <56CF5668.6090605@citrix.com> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= Message-ID: <56D0091F.80408@gmail.com> Date: Fri, 26 Feb 2016 09:13:19 +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: <56CF5668.6090605@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: Fri, 26 Feb 2016 08:13:23 -0000 El 25/02/16 a les 20:30, Roger Pau Monné ha escrit: > 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. > Hi Roger, thank you for your efforts. I'll wait for your patches. Gustau From owner-freebsd-xen@freebsd.org Fri Feb 26 10:26:48 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 81858AB4EEB for ; Fri, 26 Feb 2016 10:26:48 +0000 (UTC) (envelope-from prvs=8571d395d=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 1E7F8242 for ; Fri, 26 Feb 2016 10:26:47 +0000 (UTC) (envelope-from prvs=8571d395d=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,498,1449532800"; d="scan'208";a="334731963" Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Gustau_P=c3=a9rez?= , "freebsd-xen@freebsd.org >> 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56D02863.7040100@citrix.com> Date: Fri, 26 Feb 2016 11:26:43 +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: <56D0091F.80408@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 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: Fri, 26 Feb 2016 10:26:48 -0000 El 26/2/16 a les 9:13, Gustau Pérez ha escrit: > > > El 25/02/16 a les 20:30, Roger Pau Monné ha escrit: >> 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. >> > Hi Roger, > > thank you for your efforts. I'll wait for your patches. Hello, I've rebased everything on top of Xen 4.5, so it can be applied to the xen-tools and xen-kernel packages without issues, I've uploaded all the patches to: https://people.freebsd.org/~royger/hotplug/ As you can see, each folder contains the patches that should be applied to each component. With this I've been able to use the simple block hotplug script that's included in the series. There's a limitation with block hotplug scripts, that is not specific to FreeBSD (the same applies to Linux for example). You cannot use block hotplug scripts with HVM guests. This is because HVM guests require a QEMU instance, and in order to provide a virtual disk to QEMU it must be a file or block device present on the system. Then when using block hotplug scripts the block device can only be made available using what we call a local attach (attaching the virtual disk to Dom0), and libxl doesn't do that yet. Of course patches are very welcome to remove this limitation ;). The code to perform local attaching to Dom0 is already in libxl, it's just not used for this case. Roger. From owner-freebsd-xen@freebsd.org Fri Feb 26 11:57:14 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 1C686AB52D1 for ; Fri, 26 Feb 2016 11:57:14 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 A12F0172C for ; Fri, 26 Feb 2016 11:57:13 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id a4so66860492wme.1 for ; Fri, 26 Feb 2016 03:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=zQSmidqce8H4nkgN4xDSU8+6D7IQ04p8LfI1nwdmDJY=; b=sLiglpl89J0SYdx/XELAr3Pgbqzl0hEO6G+KcyWuJMW9o9/FMYDInKZ/8aQ1YWssge 3YXz4fRJhLnHr7W+svIAXFeF2Wj0Q8gMPg34+J8hAHngNLQx2sugOb+Vf/srHho6i9k8 vQpzHu3MnZqt2t8llr+cBgi7wkUHs2hIP0hyMOjMBrUDYrI254t2Zu0wFQYropRXv0wD RZaEP8cCvMiPJiZoLjo120Zr+TGUZ/L5ByEQoYjlUpGT7Mf53rn4E5IznxOFAeJljfjA hJf7u9Et2MSldtmKShu8FkC9Tm7u+QfRoAssdRI348LEmG1s2KVKmbfIyS/fQ5CPzYXC b6/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zQSmidqce8H4nkgN4xDSU8+6D7IQ04p8LfI1nwdmDJY=; b=VceZmtUcIMhFQvSbMonY9Jln8+Fmwvf84ujdRTwcawNHKSiV7NQ4fNsdJTry8citun mEjWqwdVxDcv/2k1swNQ5MbC9NQLwQfeWfEO91ENMbFkSbDqOwHWkxQ27gTQlahEtdpy kMs8k32T1jURKWsHmQjRCF5Kwbx9W5BdtLENboqVVs0Icn42uNRbh8AwhVtlVwwNbDBx 03f6REnwzQxdMcgLxthnDU3avIugKjuU3c51muEHy19TBtnAb2fWOUGmDuo6KrLD+wwh Vci7XBf/AYKqNZpOhr5dwW+MxhfxAYGH97JKRT1jyqa8EuayDPSIy3+bHuKwZ6wmINAc MveA== X-Gm-Message-State: AD7BkJLZkw0PvXwmIL7BFR4s/IWe1UhSvYYai6lzrLs1RimZnjRXvpMowkpGaXEgdNWugg== X-Received: by 10.194.78.83 with SMTP id z19mr1282107wjw.5.1456487832167; Fri, 26 Feb 2016 03:57:12 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id u4sm12183360wjz.4.2016.02.26.03.57.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 03:57:11 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , "freebsd-xen@freebsd.org >> 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56D03D95.9090509@gmail.com> Date: Fri, 26 Feb 2016 12:57:09 +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: <56D02863.7040100@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: Fri, 26 Feb 2016 11:57:14 -0000 El 26/02/16 a les 11:26, Roger Pau Monné ha escrit: > Hello, > > I've rebased everything on top of Xen 4.5, so it can be applied to the > xen-tools and xen-kernel packages without issues, I've uploaded all the > patches to: > > https://people.freebsd.org/~royger/hotplug/ So in my case, I'd need those patches and the patches at [1] (or the machine would panic at the ata stage during the boot), wouldn't I? I don't know if I'll be able to deal with that today or this weekend, if not monday I'll test and let you know. > As you can see, each folder contains the patches that should be applied > to each component. With this I've been able to use the simple block > hotplug script that's included in the series. > > There's a limitation with block hotplug scripts, that is not specific to > FreeBSD (the same applies to Linux for example). You cannot use block > hotplug scripts with HVM guests. This is because HVM guests require a > QEMU instance, and in order to provide a virtual disk to QEMU it must be > a file or block device present on the system. Then when using block > hotplug scripts the block device can only be made available using what > we call a local attach (attaching the virtual disk to Dom0), and libxl > doesn't do that yet. Of course patches are very welcome to remove this > limitation ;). The code to perform local attaching to Dom0 is already in > libxl, it's just not used for this case. > > Roger. In fact this is the scenario I'm most interested in :) I'll first take a took a the current situation with PV guests and build that hotplug script and then I think I'd like to deal with the support for HVM guests. Gustau [1] https://people.freebsd.org/~royger/xen_ins/ From owner-freebsd-xen@freebsd.org Fri Feb 26 11:57:22 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 D843CAB52EC for ; Fri, 26 Feb 2016 11:57:22 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 69FAD1761 for ; Fri, 26 Feb 2016 11:57:22 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id g62so67111101wme.0 for ; Fri, 26 Feb 2016 03:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=bi3XIWSt4/pnDKTCd+CoBH48IULspt8HRtbckZV08Hg=; b=x7mkuleLk6UlYa759W4MDwuNCZIKwduSe02TphrsHtZ0A69UF9hzsNXUyMX4VdscUS eWMAf3eyXEjsYV0FVyTvX2MraYxzwe5RU19KowY/v1kX+tkyvAdValD06SLI1GrmyY8M 8Gmxv30+olJoRSURYVRtwE5fzs+ZTW1KJRJXut6gGw1NiOoIA4y2pv5UwVq/I/IX4v+B X2EHUgzXtQGqVciyUypmI8dAyFOfe5te+q+IkD1T3KWp5IWTQ0VkYNiQBHiqW2UHCJug MAmQvWOvIA01xWGe8Qd/yoBa1vYl5KDQiwkqOWD4rmsABe3geoWzSauxZc7TtJPnAj5z lvag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bi3XIWSt4/pnDKTCd+CoBH48IULspt8HRtbckZV08Hg=; b=SnCaky4s2bKXBfYXlBkzG82bGnB3mT4a0xEefqzCrmj5RjSalcDckqZbmfrYGDdY+u YQpd/Ahe4UV8aM0oUBQ4CCONZJLPSiyDn1oUby5gEjQmONWvqvanKgm+qPpIKrcke5cw +0zoTI8wjwOWxt9d+hIcazvIkpTXT5PkhVkkWFdjs02wlGw0rxiTlcQ23R/XJxs3Q+Of m/ybfiZepVDPQLpU4xoTXGp9aIWQaYtY45a8PwSJbu8CqRkA07druZhxND+yvhmkqwem n2mZBCSTIkngGpFZWCCVpdgc3owKkDgWMZ03oEhbeFWu0n0RZL7qMCPLWlfhBxXqS2fm AoMw== X-Gm-Message-State: AD7BkJK+NzXwRxLrxUK7gKshk/wzjzZDoxSTCfTkkq8jkhDdQXjGOgNesh2V+HZ/5xh3Eg== X-Received: by 10.28.220.134 with SMTP id t128mr2660907wmg.61.1456487840541; Fri, 26 Feb 2016 03:57:20 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id v66sm2570686wmb.18.2016.02.26.03.57.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 03:57:19 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , "freebsd-xen@freebsd.org >> 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56D03D9F.7050807@gmail.com> Date: Fri, 26 Feb 2016 12:57:19 +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: <56D02863.7040100@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: Fri, 26 Feb 2016 11:57:22 -0000 El 26/02/16 a les 11:26, Roger Pau Monné ha escrit: > Hello, > > I've rebased everything on top of Xen 4.5, so it can be applied to the > xen-tools and xen-kernel packages without issues, I've uploaded all the > patches to: > > https://people.freebsd.org/~royger/hotplug/ So in my case, I'd need those patches and the patches at [1] (or the machine would panic at the ata stage during the boot), wouldn't I? I don't know if I'll be able to deal with that today or this weekend, if not monday I'll test and let you know. > As you can see, each folder contains the patches that should be applied > to each component. With this I've been able to use the simple block > hotplug script that's included in the series. > > There's a limitation with block hotplug scripts, that is not specific to > FreeBSD (the same applies to Linux for example). You cannot use block > hotplug scripts with HVM guests. This is because HVM guests require a > QEMU instance, and in order to provide a virtual disk to QEMU it must be > a file or block device present on the system. Then when using block > hotplug scripts the block device can only be made available using what > we call a local attach (attaching the virtual disk to Dom0), and libxl > doesn't do that yet. Of course patches are very welcome to remove this > limitation ;). The code to perform local attaching to Dom0 is already in > libxl, it's just not used for this case. > > Roger. In fact this is the scenario I'm most interested in :) I'll first take a took a the current situation with PV guests and build that hotplug script and then I think I'd like to deal with the support for HVM guests. Thank you, Gustau [1] https://people.freebsd.org/~royger/xen_ins/ From owner-freebsd-xen@freebsd.org Fri Feb 26 13:08:57 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 828E6AB5BBB for ; Fri, 26 Feb 2016 13:08:57 +0000 (UTC) (envelope-from prvs=8571d395d=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (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 3772CA76 for ; Fri, 26 Feb 2016 13:08:56 +0000 (UTC) (envelope-from prvs=8571d395d=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,498,1449532800"; d="scan'208";a="341357539" Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Gustau_P=c3=a9rez?= , "freebsd-xen@freebsd.org >> 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56D04E5F.8070901@citrix.com> Date: Fri, 26 Feb 2016 14:08:47 +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: <56D03D95.9090509@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 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: Fri, 26 Feb 2016 13:08:57 -0000 El 26/2/16 a les 12:57, Gustau Pérez ha escrit: > > > El 26/02/16 a les 11:26, Roger Pau Monné ha escrit: >> Hello, >> >> I've rebased everything on top of Xen 4.5, so it can be applied to the >> xen-tools and xen-kernel packages without issues, I've uploaded all the >> patches to: >> >> https://people.freebsd.org/~royger/hotplug/ > > So in my case, I'd need those patches and the patches at [1] (or the > machine would panic at the ata stage during the boot), wouldn't I? I > don't know if I'll be able to deal with that today or this weekend, if > not monday I'll test and let you know. Not any more, I've just updated the Xen ports and added the patches in [1]: https://svnweb.freebsd.org/ports?view=revision&revision=409604 >> As you can see, each folder contains the patches that should be applied >> to each component. With this I've been able to use the simple block >> hotplug script that's included in the series. >> >> There's a limitation with block hotplug scripts, that is not specific to >> FreeBSD (the same applies to Linux for example). You cannot use block >> hotplug scripts with HVM guests. This is because HVM guests require a >> QEMU instance, and in order to provide a virtual disk to QEMU it must be >> a file or block device present on the system. Then when using block >> hotplug scripts the block device can only be made available using what >> we call a local attach (attaching the virtual disk to Dom0), and libxl >> doesn't do that yet. Of course patches are very welcome to remove this >> limitation ;). The code to perform local attaching to Dom0 is already in >> libxl, it's just not used for this case. >> >> Roger. > > In fact this is the scenario I'm most interested in :) I'll first > take a took a the current situation with PV guests and build that > hotplug script and then I think I'd like to deal with the support for > HVM guests. It shouldn't be too hard, as I said the code is already there. The only issue I foresee is that you will have to find somewhere to store the information about the disk you have locally-attached, so you can remove it when the guest is destroyed. Roger. From owner-freebsd-xen@freebsd.org Fri Feb 26 18:16:30 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 786E6AB5D17 for ; Fri, 26 Feb 2016 18:16:30 +0000 (UTC) (envelope-from prvs=8571d395d=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (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 2A57B119F for ; Fri, 26 Feb 2016 18:16:29 +0000 (UTC) (envelope-from prvs=8571d395d=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,498,1449532800"; d="scan'208";a="341445634" Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Gustau_P=c3=a9rez?= 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com> <56D07392.60005@gmail.com> CC: FreeBSD XEN From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56D0965D.1070400@citrix.com> Date: Fri, 26 Feb 2016 19:15:57 +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: <56D07392.60005@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: Fri, 26 Feb 2016 18:16:30 -0000 (re-adding freebsd-xen) El 26/2/16 a les 16:47, Gustau Pérez ha escrit: > > > El 26/02/16 a les 14:08, Roger Pau Monné ha escrit: >> >> It shouldn't be too hard, as I said the code is already there. The only >> issue I foresee is that you will have to find somewhere to store the >> information about the disk you have locally-attached, so you can remove >> it when the guest is destroyed. > > I fear that keeping state externally could be dangerous if something > fails to destroy the association between a domain and the locally > attached storage when the guest finishes. > > In any case, I suppose there are no restrictions on which kind of > storage is used to track that information, right? I suppose easier to > read, easier to edit and common formats would be better, like json or > thing like, right? I'm not a maintainer of libxl myself, but my first suggestion would be to store this information inside of xenstore. There's already a "/libxl" directory used in order to stash some toolstack specific info, adding a new directory/hierarchy there to store the local attachments seems like the best option IMHO. Roger. From owner-freebsd-xen@freebsd.org Fri Feb 26 19:28:05 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 0F8DEAB5B21 for ; Fri, 26 Feb 2016 19:28:05 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 960421D27 for ; Fri, 26 Feb 2016 19:28:04 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id a4so96548wme.0 for ; Fri, 26 Feb 2016 11:28:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ceaz+JiPsq0nv+oFfDWVLYM8v4O3rVwJgp47LJ8aox8=; b=ZrYAKbZNIo3ITFSB71BXFMTCq9tD1CWwJ6JU5tZnFSQ0OL/D85Yy720DRnIHIVMmDw bfbK/3UJYOpDNmSeUhGIu1R+3KIz35Jtbq1Kjr3ebS8pRh3s/KiGmYL4PHjkfjZeEDwA /feJ/1ViGNDFkQubYfDrzAmxfPL82UlXVcq/Y+NKwh6kf1hxm5dKdDLmkM7FiUxTZQHI e0kEqC22A/JTgY1vmE3k+27oNZ/rUdzs5mQIvt2/62MmHl8k7g/zq4iHslQEY5hBN76U 2NqkJGxXnNclon0QxkVbBgXULB8M9v2MCZ2e090xIictC2hNMZYXgbKdr/F9lPh7kkeK elhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ceaz+JiPsq0nv+oFfDWVLYM8v4O3rVwJgp47LJ8aox8=; b=lD+0c//MDYyLfWUJUpN2N2Mt8QSMqG1FdujF8/RpcjkSIMkZlpaY4YLrNoRrq5vI6i v4hnGHswJvRVhGzYThjye5/Iq1rPMOTUSkkaLKCSUq7GtuxloSjkFipXyQUoxKDCKGE2 v/2hqT4mRnTo20XQmN/fZWmCA8cRUZ5gwVbaXcxFBcWxEWzXqc4McRZ9L+OIv48Xytr8 ejEaxG0+PfvzkYnjuJ8brKYenPoOnsBAh+L0XnHKjpSv+6VSwp2MxeV1Fr0YjTDQiojj IvmzQZ/WYakwGkUwK+iOgiZPsHDZuk+2146LqdahA6I9QmmFz1+8iTP0nY+hFNbO9w7B /JOw== X-Gm-Message-State: AD7BkJLS1hGmZq0SFOiBSrtW9rNP+w3xVPaFyg9ktk0efY/lothzlEwlrTMDxbM4JFerrA== X-Received: by 10.194.59.233 with SMTP id c9mr3144442wjr.88.1456514883101; Fri, 26 Feb 2016 11:28:03 -0800 (PST) Received: from [192.168.1.110] (156.Red-83-60-212.dynamicIP.rima-tde.net. [83.60.212.156]) by smtp.googlemail.com with ESMTPSA id v66sm4085893wmb.18.2016.02.26.11.28.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 11:28:01 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= 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> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com> <56D07392.60005@gmail.com> <56D0965D.1070400@citrix.com> Cc: FreeBSD XEN From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56D0A73E.3070105@gmail.com> Date: Fri, 26 Feb 2016 20:27:58 +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: <56D0965D.1070400@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: Fri, 26 Feb 2016 19:28:05 -0000 El 26/02/16 a les 19:15, Roger Pau Monné ha escrit: > I'm not a maintainer of libxl myself, but my first suggestion would be > to store this information inside of xenstore. There's already a "/libxl" > directory used in order to stash some toolstack specific info, adding a > new directory/hierarchy there to store the local attachments seems like > the best option IMHO. > That would surely be the best option and makes a lot of sense. And that way both PV and HVM guest would use the same storage for hotplug disks, having thus an unified way to storage that info. Next monday I'll take a look a the hotplug script for PV (I don't know if I'll be able to apply your patches this weekend) and then do the hacking to support HVM guests. Thank you for you help, Gustau