diff options
author | emellor@ewan <emellor@ewan> | 2005-10-06 11:12:55 +0100 |
---|---|---|
committer | emellor@ewan <emellor@ewan> | 2005-10-06 11:12:55 +0100 |
commit | 705f86977c04583539b2eff779f63d15690de2e6 (patch) | |
tree | 092ec558c24705b759d13f3980ca57937232a23a /tools/python | |
parent | 10956b773945319f50f76beedf801cb0739457ff (diff) | |
parent | e926a106968c31292ed850b60197fb9af112d69e (diff) | |
download | xen-705f86977c04583539b2eff779f63d15690de2e6.tar.gz xen-705f86977c04583539b2eff779f63d15690de2e6.tar.bz2 xen-705f86977c04583539b2eff779f63d15690de2e6.zip |
Merged.
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/xen/lowlevel/xc/xc.c | 10 | ||||
-rw-r--r-- | tools/python/xen/xend/server/tpmif.py | 17 | ||||
-rw-r--r-- | tools/python/xen/xm/main.py | 4 |
3 files changed, 23 insertions, 8 deletions
diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index d096b7bb96..7ff5b40ca9 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -432,16 +432,16 @@ static PyObject *pyxc_evtchn_alloc_unbound(PyObject *self, { XcObject *xc = (XcObject *)self; - u32 dom; + u32 dom = DOMID_SELF, remote_dom; int port = 0; - static char *kwd_list[] = { "dom", "port", NULL }; + static char *kwd_list[] = { "remote_dom", "dom", "port", NULL }; - if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i|i", kwd_list, - &dom, &port) ) + if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i|ii", kwd_list, + &remote_dom, &dom, &port) ) return NULL; - if ( xc_evtchn_alloc_unbound(xc->xc_handle, dom, &port) != 0 ) + if ( xc_evtchn_alloc_unbound(xc->xc_handle, remote_dom, dom, &port) != 0 ) return PyErr_SetFromErrno(xc_error); return PyInt_FromLong(port); diff --git a/tools/python/xen/xend/server/tpmif.py b/tools/python/xen/xend/server/tpmif.py index 50e8f7f016..b5269a2cb0 100644 --- a/tools/python/xen/xend/server/tpmif.py +++ b/tools/python/xen/xend/server/tpmif.py @@ -39,9 +39,24 @@ class TPMifController(DevController): """@see DevController.getDeviceDetails""" devid = int(sxp.child_value(config, 'instance', '0')) - log.debug("The domain has a TPM with instance %d." % devid) + log.info("The domain has a TPM with instance %d." % devid) back = { 'instance' : "%i" % devid } front = { 'handle' : "%i" % devid } return (devid, back, front) + + def configuration(self, devid): + + log.info("The configuration method is called.") + + result = DevContoller.configuration(self, devid) + + (instance) = self.readBackend(devif, + 'instance') + + if instance: + result.append(['instance', instance]) + log.info("configuration: instance=%d." % instance) + + return result diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 1ce9985a1c..df458c5d88 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -86,8 +86,8 @@ xm full list of subcommands: shutdown [-w|-a] <DomId> shutdown a domain sysrq <DomId> <letter> send a sysrq to a domain unpause <DomId> unpause a paused domain - vcpu-enable <DomId> <VCPU> disable VCPU in a domain - vcpu-disable <DomId> <VCPU> enable VCPU in a domain + vcpu-enable <DomId> <VCPU> enable VCPU in a domain + vcpu-disable <DomId> <VCPU> disable VCPU in a domain vcpu-list <DomId> get the list of VCPUs for a domain vcpu-pin <DomId> <VCpu> <CPUS> set which cpus a VCPU can use. |