xenstore.c (184958) | xenstore.c (185605) |
---|---|
1/****************************************************************************** 2 * xenbus_xs.c 3 * 4 * This is the kernel equivalent of the "xs" library. We don't need everything 5 * and we use xenbus_comms for communication. 6 * 7 * Copyright (C) 2005 Rusty Russell, IBM Corporation 8 * --- 16 unchanged lines hidden (view full) --- 25 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 28 * IN THE SOFTWARE. 29 */ 30 31 32#include <sys/cdefs.h> | 1/****************************************************************************** 2 * xenbus_xs.c 3 * 4 * This is the kernel equivalent of the "xs" library. We don't need everything 5 * and we use xenbus_comms for communication. 6 * 7 * Copyright (C) 2005 Rusty Russell, IBM Corporation 8 * --- 16 unchanged lines hidden (view full) --- 25 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 28 * IN THE SOFTWARE. 29 */ 30 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbus_xs.c 184958 2008-11-14 07:06:27Z kmacy $"); | 33__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbus_xs.c 185605 2008-12-04 07:59:05Z kmacy $"); |
34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/cdefs.h> 38#include <sys/unistd.h> 39#include <sys/errno.h> 40#include <sys/uio.h> 41#include <sys/kernel.h> --- 6 unchanged lines hidden (view full) --- 48#include <sys/malloc.h> 49#include <sys/libkern.h> 50#include <sys/systm.h> 51#include <sys/proc.h> 52#include <sys/kthread.h> 53 54#include <machine/xen/xen-os.h> 55#include <machine/xen/hypervisor.h> | 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/cdefs.h> 38#include <sys/unistd.h> 39#include <sys/errno.h> 40#include <sys/uio.h> 41#include <sys/kernel.h> --- 6 unchanged lines hidden (view full) --- 48#include <sys/malloc.h> 49#include <sys/libkern.h> 50#include <sys/systm.h> 51#include <sys/proc.h> 52#include <sys/kthread.h> 53 54#include <machine/xen/xen-os.h> 55#include <machine/xen/hypervisor.h> |
56#include <machine/xen/xenbus.h> | |
57#include <machine/stdarg.h> 58 | 56#include <machine/stdarg.h> 57 |
58#include <xen/xenbus/xenbusvar.h> |
|
59#include <xen/xenbus/xenbus_comms.h> 60static int xs_process_msg(enum xsd_sockmsg_type *type); 61 62#define kmalloc(size, unused) malloc(size, M_DEVBUF, M_WAITOK) 63#define BUG_ON PANIC_IF 64#define DEFINE_SPINLOCK(lock) struct mtx lock 65#define u32 uint32_t 66#define list_del(head, ent) TAILQ_REMOVE(head, ent, list) --- 716 unchanged lines hidden (view full) --- 783 784 sx_xunlock(&xs_state.suspend_mutex); 785} 786 787static void xenwatch_thread(void *unused) 788{ 789 struct xs_stored_msg *msg; 790 | 59#include <xen/xenbus/xenbus_comms.h> 60static int xs_process_msg(enum xsd_sockmsg_type *type); 61 62#define kmalloc(size, unused) malloc(size, M_DEVBUF, M_WAITOK) 63#define BUG_ON PANIC_IF 64#define DEFINE_SPINLOCK(lock) struct mtx lock 65#define u32 uint32_t 66#define list_del(head, ent) TAILQ_REMOVE(head, ent, list) --- 716 unchanged lines hidden (view full) --- 783 784 sx_xunlock(&xs_state.suspend_mutex); 785} 786 787static void xenwatch_thread(void *unused) 788{ 789 struct xs_stored_msg *msg; 790 |
791 xenwatch_running = 1; 792 | |
793 DELAY(100000); 794 while (xenwatch_inline) { 795 printf("xenwatch inline still running\n"); 796 DELAY(100000); 797 } 798 799 800 for (;;) { --- 160 unchanged lines hidden --- | 791 DELAY(100000); 792 while (xenwatch_inline) { 793 printf("xenwatch inline still running\n"); 794 DELAY(100000); 795 } 796 797 798 for (;;) { --- 160 unchanged lines hidden --- |