[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Add xc_init_store and run xenbus probe on INITDOMAIN_STORE privcmd ioctl.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 739ba7204123075cf0483a09d78a121e72ca75cd # Parent 1b837c5794ca16171bf34decdbf1a32f261e28ec Add xc_init_store and run xenbus probe on INITDOMAIN_STORE privcmd ioctl. Signed-off-by: Rusty Russel <rusty@xxxxxxxxxxxxxxx> Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 1b837c5794ca -r 739ba7204123 linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c Tue Jul 12 09:51:37 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c Tue Jul 12 10:01:03 2005 @@ -19,6 +19,7 @@ #include <linux/highmem.h> #include <linux/pagemap.h> #include <linux/seq_file.h> +#include <linux/kthread.h> #include <asm/pgalloc.h> #include <asm/pgtable.h> @@ -222,7 +223,7 @@ PAGE_SHIFT); /* We'll return then this will wait for daemon to answer */ - // kthread_run(do_xenbus_probe, NULL, "xenbus_probe"); + kthread_run(do_xenbus_probe, NULL, "xenbus_probe"); } break; diff -r 1b837c5794ca -r 739ba7204123 tools/libxc/xc.h --- a/tools/libxc/xc.h Tue Jul 12 09:51:37 2005 +++ b/tools/libxc/xc.h Tue Jul 12 10:01:03 2005 @@ -524,4 +524,13 @@ /* Execute a privileged dom0 operation. */ int xc_dom0_op(int xc_handle, dom0_op_t *op); +/* Initializes the store (for dom0) + remote_port should be the remote end of a bound interdomain channel between + the store and dom0. + + This function returns a shared frame that should be passed to + xs_introduce_domain + */ +long xc_init_store(int xc_handle, int remote_port); + #endif /* __XC_H__ */ diff -r 1b837c5794ca -r 739ba7204123 tools/libxc/xc_misc.c --- a/tools/libxc/xc_misc.c Tue Jul 12 09:51:37 2005 +++ b/tools/libxc/xc_misc.c Tue Jul 12 10:01:03 2005 @@ -130,3 +130,8 @@ return rc; } + +long xc_init_store(int xc_handle, int remote_port) +{ + return ioctl(xc_handle, IOCTL_PRIVCMD_INITDOMAIN_STORE, remote_port); +} _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |