WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] NetBSD and hotplug scripts synchronization using libxl

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] NetBSD and hotplug scripts synchronization using libxl
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Mon, 22 Aug 2011 12:26:40 +0200
Delivery-date: Mon, 22 Aug 2011 03:27:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=aAO7OJqfMtt1bVpbkEUDKHOvpt3r7xvbDUtuYrGfD5M=; b=ggoCbeOZMfjHPFp/ekzm20zBKdBrkdWT2Y+lLj5tAGaqZ2ZKt9JfZFRooggpJHBJdS O/KrS+yQgF0X8bz0AfNoGwerQKiBlpjfoLes+C+hVG/1MIF8TAYnB5OD1jZpTgzp9b8h 1p2SPIYb3Ph2cGKM97/5MSuudbO0Z0t4SezIU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

With the introduction of libxl the deletion of all xenstore entries
regarding a domU cleanup is done in libxl itself, while in xend the
deletion of entries regarding vbd was done in the hotplug scripts.
This presents a problem in NetBSD, since there is no synchronization
between xbdback (the kernel driver in charge of disconnecting the
devices), libxl and the hotplug scripts that actually unmount the
images (called from xenbackend user-space daemon). The current flow in
NetBSD is the following, typically xbdback reads a CLOSING state from
xenbus, disconnects the image and sets the state to CLOSED. And here
there's a race condition between libxl and the hotplug scripts called
by xenbackend. Both are watching the state of xenstore entries, and
upon detecting a CLOSED state libxl deletes the entry, probably before
xenbackend has been able to read it and unmount the image.

This is the only problem left to add NetBSD compatibility to libxl,
how does this synchronization happen in Linux? I've tried looking at
the hotplug scripts, but I'm not able to see any kind of
sincronization, probably because Linux doesn't use vbd anymore in
libxl, but I think there should also be some kind of synchronization
with tapdisk device unmouting.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>