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/
Home Products Support Community News


[Xen-devel] [PATCH 2/7] vtpm Mini-Os domain: vtpm hotplug stability fixe

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 2/7] vtpm Mini-Os domain: vtpm hotplug stability fixes
From: Matthew Fioravante <matthew.fioravante@xxxxxxxxxx>
Date: Wed, 25 Aug 2010 11:10:26 -0400
Delivery-date: Wed, 25 Aug 2010 08:11:51 -0700
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
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100720 Lanikai/3.1.1
 Signed-off-by: Matthew Fioravante <Matthew.Fioravante@xxxxxxxxxx>

The following patch provides stability fixes for the vtpm hotplug system.

There were several cases where the hotplug system would get in a bad state and would hang because of a stale lockfile that never got cleaned up. The pipes that talk to the manager could also get left in a bad state.

The hotplug scripts as they are now only work correctly if one file lock is set. If 2 or more file locks are created and the script exits on an error, the trap cleanup will only release the last lock.

This patch also adds a binary called vtpmmgrtalk which talks to the manager using the console fifos. It uses non-blocking IO to open the fifos so it can quit immediatly with an error if the manager is not listening on the other side. The hotplug scripts now use this program to talk to the manager.

Attachment: 2-hotplug.patch
Description: Text Data

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 2/7] vtpm Mini-Os domain: vtpm hotplug stability fixes, Matthew Fioravante <=