Displaying 9 results from an estimated 9 matches for "pyerr_setfromerrno".
2017 May 11
1
[PATCH] python: improve few exceptions thrown on error
Make use of functions and types that fit more, and that do the same job:
- use PyErr_NoMemory() on malloc failure
- use PyErr_SetFromErrno when setting an exception from an errno
- throw TypeError if not getting a list when required
---
python/handle.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/python/handle.c b/python/handle.c
index 88024e1..9746dca 100644
--- a/python/handle.c
+++ b/python/handle.c...
2003 May 18
1
Problems with the pyvorbis Python wrapper under Windows
Hi!
The following Python code does what is excepted under Linux:
>>> from ogg.vorbis import *
>>> com=VorbisFile('01.ogg').comment()
>>> com['title']='foo'
>>> com.write_to('01.ogg')
but under Windows I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno
2006 Aug 30
3
arch-specific xc.c code?
...list[] = { "dom", "log", NULL };
+
+ if ( !PyArg_ParseTupleAndKeywords(args, kwds, "ii", kwd_list,
+ &dom, &log) )
+ return NULL;
+
+ if ( xc_alloc_real_mode_area(self->xc_handle, dom, log) )
+ return PyErr_SetFromErrno(xc_error);
+
+ Py_INCREF(zero);
+ return zero;
+}
+
static PyObject *pyxc_domain_ioport_permission(XcObject *self,
PyObject *args,
PyObject *kwds)
@@ -1088,6 +1108,14 @@ static PyMethodDef pyxc_me...
2005 May 31
0
[PATCH] Store page and evtchn in start_info_t
...ore_evtchn into python callers. */
if ( xc_linux_build(xc->xc_handle, dom, image,
- ramdisk, cmdline, control_evtchn, flags, vcpus) != 0 )
+ ramdisk, cmdline, control_evtchn, flags, vcpus,
+ store_evtchn, &store_mfn) != 0 )
return PyErr_SetFromErrno(xc_error);
Py_INCREF(zero);
diff -ur xen-unstable/xen/include/public/xen.h xen-unstable-working/xen/include/public/xen.h
--- xen-unstable/xen/include/public/xen.h 2005-05-24 13:10:17.000000000 +1000
+++ xen-unstable-working/xen/include/public/xen.h 2005-05-31 17:36:49.000000000 +1000
@@...
2005 Oct 10
13
[PATCH] 0/2 VCPU creation and allocation
I''ve put together two patches. The first introduces a new dom0_op,
set_max_vcpus, which with an associated variable and a check in the
VCPUOP handler fixes [1]bug 288. Also included is a new VCPUOP,
VCPUOP_create, which handles all of the vcpu creation tasks and leaves
initialization and unpausing to VCPUOP_initialize. The separation
allows for build-time allocation of vcpus which
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
.../* make space for node_to_cpu mapping */
+ map = (xc_node_to_cpu_t *)malloc( sizeof(xc_node_to_cpu_t) *
+ PUBLIC_MAX_NUMNODES );
+ set_xen_guest_handle(info.node_to_cpu, map);
+
if ( xc_physinfo(self->xc_handle, &info) != 0 )
return PyErr_SetFromErrno(xc_error);
@@ -489,16 +502,56 @@ static PyObject *pyxc_physinfo(XcObject
if(q>cpu_cap)
*(q-1)=0;
- return Py_BuildValue("{s:i,s:i,s:i,s:i,s:l,s:l,s:l,s:i,s:s}",
- "threads_per_core", info.threads_per_core,
-...
2011 Nov 18
2
[PATCH 0 of 2] Add configuration options to selectively disable S3 and S4 (V3)
This patch series adds the ability to selectively disable the S3 and S4 ACPI
power states for HVM guests.
Since there is a general move towards retiring the hvm_info_table structure,
the first patch moves the acpi_enabled flag out of the hvm_info_table and into
a xenstore key (platform/acpi).
The second patch then introduces the acpi_s3 and acpi_s4 configuration
parameters to the xl config file
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...&vcpus) )
> return NULL;
>
> if ( xc_linux_build(xc->xc_handle, dom, image,
> ramdisk, cmdline, control_evtchn, flags, vcpus,
>- store_evtchn, &store_mfn) != 0 )
>- return PyErr_SetFromErrno(xc_error);
>-
>- return Py_BuildValue("{s:i}", "store_mfn", store_mfn);
>+ store_evtchn, &store_mfn,
>+ console_evtchn, &console_mfn) != 0 )
>+ return PyErr_SetFromErrno(xc_error);
>+
>+ return Py_BuildV...
2005 Sep 08
45
/proc/xen/xenbus supports watch?
Hi,
Anybody (Christian?) could please tell me if we can get the support
for registering watch with /proc/xen/xenbus? (..OK, I know that we
will change it this /proc stuff to a device soon)
So far we can only do read/write/rm. I really miss the xen watch feature.
Many thanks,
Hieu
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com