Date: Fri, 26 Feb 2016 11:26:43 +0100 From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <roger.pau@citrix.com> To: =?UTF-8?Q?Gustau_P=c3=a9rez?= <gustau.perez@gmail.com>, "freebsd-xen@freebsd.org >> FreeBSD XEN" <freebsd-xen@freebsd.org> Subject: Re: Porting the block-iscsi hotplug script Message-ID: <56D02863.7040100@citrix.com> In-Reply-To: <56D0091F.80408@gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56D02863.7040100>