mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Merged.
This commit is contained in:
commit
705f86977c
20 files changed
+182
-146
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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
|
||||
@@ -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.
|
||||
|
||||
|
||||