mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1676 (42a306a07UKpLq27_iCaJyxJBbKedg)
More console cleanups. The console ring now overwrites its tail when it fills, rather than stop recording output. The guest serial output is only allowed to half-fill the serial output buffer, and now respects hypercall preemption requests. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
6eda19e5e4
commit
01fd68a4ee
10 files changed
+107
-72
No files matched your search
@@ -678,7 +678,8 @@ static PyObject *pyxc_readconsolering(PyObject *self,
|
||||
XcObject *xc = (XcObject *)self;
|
||||
|
||||
unsigned int clear = 0;
|
||||
char str[32768];
|
||||
char _str[32768], *str = _str;
|
||||
unsigned int count = 32768;
|
||||
int ret;
|
||||
|
||||
static char *kwd_list[] = { "clear", NULL };
|
||||
@@ -686,11 +687,11 @@ static PyObject *pyxc_readconsolering(PyObject *self,
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|i", kwd_list, &clear) )
|
||||
return NULL;
|
||||
|
||||
ret = xc_readconsolering(xc->xc_handle, str, sizeof(str), clear);
|
||||
ret = xc_readconsolering(xc->xc_handle, &str, &count, clear);
|
||||
if ( ret < 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||
return PyString_FromStringAndSize(str, ret);
|
||||
return PyString_FromStringAndSize(str, count);
|
||||
}
|
||||
|
||||
static PyObject *pyxc_physinfo(PyObject *self,
|
||||
|
||||