From: Ian Campbell Subject: Re: [PATCH vtpm_manager 2/2] Fixes to vtpm hotplug scripts Date: Tue, 18 Sep 2012 08:43:18 +0100 Message-ID: <1347954198.25803.92.camel@dagon.hellion.org.uk> References: <505793F4.40301@jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <505793F4.40301@jhuapl.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matthew Fioravante Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-09-17 at 22:19 +0100, Matthew Fioravante wrote: > This patch fixes IO deadlocks in the vtpm hotplug scripts Is the switch from awk to gawk a part of this? How? IIRC we deliberately switched from using gawk specific features to allow e.g. mawk to be used. If there is some gawk specific construct used here it would be better to recast it in more portable terms IMHO. > - set -e > + local resp_hex > + #send cmd to vtpm_manager and get response > + if ! resp_hex=`echo "$cmd$(str_to_hex32 $inst)" | vtpmmgrtalk `; then Is this really the command/control interface provided by VTPM? Can we not work with upstream to define something more usable? Ian.