Skip to contentSkip to conversation

Remove '-instance' parameter for comand line parameter to HVM DM

PATCH Applied Stefan Berger 2 participants 2 messages Aug 28, 2006 – Sep 14, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove '-instance' parameter for comand line parameter to HVM DM

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.

xen-unstable.hg/tools/python/xen/xend/image.py +0 -4
Index: 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):
xen-unstable.hg/tools/python/xen/xend/server/tpmif.py +1 -1
Index: 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()) }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 9 lines · Stefan Berger

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.

Applied, thanks Stefan.

Ewan.