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/