# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID de401e010c25cc59af09ac4522a200b65e4faf5f
# Parent  933613959bf6a8e48a43e1cd93d4afae4a660ec8
implement is_initial_domain()

Signed-off-by: Jimi Xenidis <[EMAIL PROTECTED]>
---
 include/asm-powerpc/xen/asm/hypervisor.h |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r 933613959bf6 -r de401e010c25 include/asm-powerpc/xen/asm/hypervisor.h
--- a/include/asm-powerpc/xen/asm/hypervisor.h  Wed Oct 04 11:20:16 2006 -0400
+++ b/include/asm-powerpc/xen/asm/hypervisor.h  Wed Oct 04 14:12:00 2006 -0400
@@ -44,6 +44,12 @@ extern shared_info_t *HYPERVISOR_shared_
 
 /* arch/xen/i386/kernel/setup.c */
 extern start_info_t *xen_start_info;
+
+#ifdef CONFIG_XEN_PRIVILEGED_GUEST
+#define is_initial_xendomain() (!!(xen_start_info->flags & SIF_INITDOMAIN))
+#else
+#define is_initial_xendomain() 0
+#endif
 
 /* arch/xen/kernel/evtchn.c */
 /* Force a proper event-channel callback from Xen. */

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to