Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2008 07:49:06 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132560 for review
Message-ID:  <200801050749.m057n6NB026210@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132560

Change 132560 by kmacy@pandemonium:kmacy:xen31 on 2008/01/05 07:48:51

	add convenience macro for checking for initial domain

Affected files ...

.. //depot/projects/xen31/sys/i386/include/xen/hypervisor.h#4 edit

Differences ...

==== //depot/projects/xen31/sys/i386/include/xen/hypervisor.h#4 (text+ko) ====

@@ -31,6 +31,12 @@
 #define MULTI_UVMDOMID_INDEX 4
 #endif
 
+#ifdef CONFIG_XEN_PRIVILEGED_GUEST
+#define is_initial_xendomain() (xen_start_info->flags & SIF_INITDOMAIN)
+#else
+#define is_initial_xendomain() 0
+#endif
+
 extern start_info_t *xen_start_info;
 
 extern uint64_t get_system_time(int ticks);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801050749.m057n6NB026210>