mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but not for dom0 kernel!). Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
23e735cadd
commit
07f2bdb30d
8 files changed
+95
-67
No files matched your search
@@ -709,11 +709,11 @@ static PyObject *pyxc_shadow_mem_control(PyObject *self,
|
||||
return NULL;
|
||||
|
||||
if ( mbarg < 0 )
|
||||
op = DOM0_SHADOW2_CONTROL_OP_GET_ALLOCATION;
|
||||
op = DOM0_SHADOW_CONTROL_OP_GET_ALLOCATION;
|
||||
else
|
||||
{
|
||||
mb = mbarg;
|
||||
op = DOM0_SHADOW2_CONTROL_OP_SET_ALLOCATION;
|
||||
op = DOM0_SHADOW_CONTROL_OP_SET_ALLOCATION;
|
||||
}
|
||||
if ( xc_shadow_control(xc->xc_handle, dom, op, NULL, 0, &mb, 0, NULL) < 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||