From: Stefan Berger Subject: [vTPM][XM][PATCH] Remove '-instance' parameter for comand line parameter to HVM DM Date: Mon, 28 Aug 2006 10:07:39 -0400 Message-ID: <1156774059.9324.7.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-RaW/yYsy9FI1mFzvjH0A" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-RaW/yYsy9FI1mFzvjH0A Content-Type: text/plain Content-Transfer-Encoding: 7bit This is a repost of a previously posted patch that removes the '-instance' parameter from the qemu device model. Since this parameter is not interpreted by the DM, it actually causes the DM to hang if passed. Future device model support for the vTPM will read parameters from the xenstore and won't need the command line parameter(s). The patch includes a small change to the debugging output for the vTPM module. Signed-off-by: Stefan Berger --=-RaW/yYsy9FI1mFzvjH0A Content-Disposition: attachment; filename=xm-vtpm-hvm.diff Content-Type: text/x-patch; name=xm-vtpm-hvm.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xend/image.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/image.py +++ root/xen-unstable.hg/tools/python/xen/xend/image.py @@ -302,10 +302,6 @@ class HVMImageHandler(ImageHandler): (nics, mac, model)) ret.append("-net") ret.append("tap,vlan=%d,bridge=%s" % (nics, bridge)) - if name == 'vtpm': - instance = sxp.child_value(info, 'pref_instance') - ret.append("-instance") - ret.append("%s" % instance) return ret def configVNC(self, config): Index: root/xen-unstable.hg/tools/python/xen/xend/server/tpmif.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/server/tpmif.py +++ root/xen-unstable.hg/tools/python/xen/xend/server/tpmif.py @@ -52,7 +51,7 @@ class TPMifController(DevController): if inst == -1: inst = int(sxp.child_value(config, 'instance' , '0')) - log.info("The domain has a TPM with instance %d and devid %d.", + log.info("The domain has a TPM with pref. instance %d and devid %d.", inst, devid) back = { 'pref_instance' : "%i" % inst, 'resume' : "%s" % (self.vm.getResume()) } --=-RaW/yYsy9FI1mFzvjH0A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-RaW/yYsy9FI1mFzvjH0A--