From: Ian Campbell Subject: Re: [PATCH v2 4/5] libxl: call hotplug scripts from libxl for vif Date: Wed, 18 Apr 2012 14:31:44 +0100 Message-ID: <1334755904.23948.239.camel@zakaz.uk.xensource.com> References: <1334677876-17704-1-git-send-email-roger.pau@citrix.com> <1334677876-17704-5-git-send-email-roger.pau@citrix.com> <1334742899.23948.180.camel@zakaz.uk.xensource.com> <1334752277.23948.233.camel@zakaz.uk.xensource.com> <2E99DF0A-25A4-4D34-8B66-22E42E75149B@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2E99DF0A-25A4-4D34-8B66-22E42E75149B@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org > Ok, I will add and extra parameter to libxl__initiate_device_remove that > turns on or off the destruction of the front xenstore entries. We will > first call it without removing the fronted, and if that fails we will > call libxl__initiate_device_remove from the callback this time forcing > the removal of the frontend. If libxl__initiate_device_remove fails then you should be calling libxl__initiate_device_destroy, I think, so no need for a param to _remove? > > Hang on, can't you infer the type from the backend path, one should > > contains vif and the other something else (tap)? Or is this because of > > the stupid sharing of the vif dir for both vif and tap from the > > hotplug > > scripts point of view? > > Nope, tap doesn't have a backend xenstore entry, only vifs have, so this > is kind of a hack because I was marking a vifs path as tap... Right, that's the stupid sharing I was referring too (which IIRC I added :-/) > > > It's probably too late in the 4.2 cycle to direct the tap hotplug > > script > > to a different backend dir so I think the best thing to do for now is > > to > > put this key somewhere else so that it doesn't become a guest visible > > API (which is what happens with where you have put it). The same place > > as udev_disable would work fine. > > Does this paths sound ok: > > /libxl/devices//nic//udev_disable > /libxl/devices//nic//type Works for me. Ian.