mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
a0c0d2778f
commit
4e2b530c51
3 files changed
+16
-1
No files matched your search
@@ -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 @@ static int privcmd_ioctl(struct inode *inode, struct file *file,
|
||||
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;
|
||||
|
||||
|
||||
@@ -524,4 +524,13 @@ long xc_get_tot_pages(int xc_handle, u32 domid);
|
||||
/* 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__ */
|
||||
@@ -130,3 +130,8 @@ int xc_msr_write(int xc_handle, int cpu_mask, int msr, unsigned int low,
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
long xc_init_store(int xc_handle, int remote_port)
|
||||
{
|
||||
return ioctl(xc_handle, IOCTL_PRIVCMD_INITDOMAIN_STORE, remote_port);
|
||||
}
|
||||