guests operating systems on a single machine. Guest OSes (also called "domains") require a modified kernel which supports Xen hypercalls in replacement to access to the physical hardware. At boot, the xen kernel is loaded along with the guest kernel for the first domain (called domain0). domain0 has privileges to access the physical hardware (PCI and ISA devices), administrate other domains and provide virtual devices (disks and network) to other domains. xenkernel45 and xentools45 contains the kernel and tools from the Xen 4.5.x branch
18 lines
602 B
C
18 lines
602 B
C
$NetBSD: patch-xenstore_xc.c,v 1.1 2015/01/20 16:42:13 bouyer Exp $
|
|
|
|
--- xenstore/xs.c.orig 2015-01-19 15:40:00.000000000 +0100
|
|
+++ xenstore/xs.c 2015-01-19 15:46:56.000000000 +0100
|
|
@@ -725,9 +725,13 @@
|
|
|
|
#ifdef USE_PTHREAD
|
|
#define DEFAULT_THREAD_STACKSIZE (16 * 1024)
|
|
+#ifndef PTHREAD_STACK_MIN
|
|
+#define READ_THREAD_STACKSIZE DEFAULT_THREAD_STACKSIZE
|
|
+#else
|
|
#define READ_THREAD_STACKSIZE \
|
|
((DEFAULT_THREAD_STACKSIZE < PTHREAD_STACK_MIN) ? \
|
|
PTHREAD_STACK_MIN : DEFAULT_THREAD_STACKSIZE)
|
|
+#endif
|
|
|
|
/* We dynamically create a reader thread on demand. */
|
|
mutex_lock(&h->request_mutex);
|