direct-io.hg

changeset 5748:739ba7204123

Add xc_init_store and run xenbus probe on INITDOMAIN_STORE privcmd ioctl.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Jul 12 10:01:03 2005 +0000 (2005-07-12)
parents 1b837c5794ca
children 09b142631de3
files linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c tools/libxc/xc.h tools/libxc/xc_misc.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Tue Jul 12 09:51:37 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Tue Jul 12 10:01:03 2005 +0000
     1.3 @@ -19,6 +19,7 @@
     1.4  #include <linux/highmem.h>
     1.5  #include <linux/pagemap.h>
     1.6  #include <linux/seq_file.h>
     1.7 +#include <linux/kthread.h>
     1.8  
     1.9  #include <asm/pgalloc.h>
    1.10  #include <asm/pgtable.h>
    1.11 @@ -222,7 +223,7 @@ static int privcmd_ioctl(struct inode *i
    1.12                           PAGE_SHIFT);
    1.13  
    1.14          /* We'll return then this will wait for daemon to answer */
    1.15 -        // kthread_run(do_xenbus_probe, NULL, "xenbus_probe");
    1.16 +        kthread_run(do_xenbus_probe, NULL, "xenbus_probe");
    1.17      }
    1.18      break;
    1.19  
     2.1 --- a/tools/libxc/xc.h	Tue Jul 12 09:51:37 2005 +0000
     2.2 +++ b/tools/libxc/xc.h	Tue Jul 12 10:01:03 2005 +0000
     2.3 @@ -524,4 +524,13 @@ long xc_get_tot_pages(int xc_handle, u32
     2.4  /* Execute a privileged dom0 operation. */
     2.5  int xc_dom0_op(int xc_handle, dom0_op_t *op);
     2.6  
     2.7 +/* Initializes the store (for dom0)
     2.8 +   remote_port should be the remote end of a bound interdomain channel between
     2.9 +   the store and dom0.
    2.10 +
    2.11 +   This function returns a shared frame that should be passed to
    2.12 +   xs_introduce_domain
    2.13 + */
    2.14 +long xc_init_store(int xc_handle, int remote_port);
    2.15 +
    2.16  #endif /* __XC_H__ */
     3.1 --- a/tools/libxc/xc_misc.c	Tue Jul 12 09:51:37 2005 +0000
     3.2 +++ b/tools/libxc/xc_misc.c	Tue Jul 12 10:01:03 2005 +0000
     3.3 @@ -130,3 +130,8 @@ int xc_msr_write(int xc_handle, int cpu_
     3.4      
     3.5      return rc;
     3.6  }
     3.7 +
     3.8 +long xc_init_store(int xc_handle, int remote_port)
     3.9 +{
    3.10 +	return ioctl(xc_handle, IOCTL_PRIVCMD_INITDOMAIN_STORE, remote_port);
    3.11 +}