[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] The attached patch uncouples the device id used inside XenD from the
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID 3ab6a6c4b6edda2bc4f7d920de581cb542d3d36c # Parent cd434888abdc5979fc1098522367f61307296342 The attached patch uncouples the device id used inside XenD from the instance number of the vTPM. Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx> diff -r cd434888abdc -r 3ab6a6c4b6ed tools/python/xen/xend/server/tpmif.py --- a/tools/python/xen/xend/server/tpmif.py Thu Dec 8 18:17:59 2005 +++ b/tools/python/xen/xend/server/tpmif.py Thu Dec 8 18:19:24 2005 @@ -38,10 +38,14 @@ def getDeviceDetails(self, config): """@see DevController.getDeviceDetails""" - devid = int(sxp.child_value(config, 'pref_instance', '0')) - log.info("The domain has a TPM with instance %d." % devid) + devid = self.allocateDeviceID() + inst = int(sxp.child_value(config, 'pref_instance', '-1')) + if inst == -1: + inst = int(sxp.child_value(config, 'instance' , '0')) - back = { 'pref_instance' : "%i" % devid } + log.info("The domain has a TPM with instance %d and devid %d.", + inst, devid) + back = { 'pref_instance' : "%i" % inst } front = { 'handle' : "%i" % devid } return (devid, back, front) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |