All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: is_initial_xendomain()
@ 2006-08-18  7:56 Ian Pratt
  2006-08-18  8:09 ` is_initial_xendomain() Gerd Hoffmann
  2006-08-18  8:57 ` is_initial_xendomain() Keir Fraser
  0 siblings, 2 replies; 6+ messages in thread
From: Ian Pratt @ 2006-08-18  7:56 UTC (permalink / raw)
  To: Jan Beulich, xen-devel

> #ifdef CONFIG_XEN_PRIVILEGED_GUEST
> #define is_initial_xendomain() (xen_start_info->flags &
SIF_INITDOMAIN)
> #else
> #define is_initial_xendomain() 0
> #endif
> 
> If that is acceptable, I'm ready to create a respective patch
> (but I'd like to avoid spending time on it if there are objections).

Personally, I'd like to see CONFIG_XEN_PRIVILEGED_GUEST disappear
altogether. The code size saving is small, and most people use the -xen
kernel rather than  -xen0/-xenU anyway.

Ian

^ permalink raw reply	[flat|nested] 6+ messages in thread
* is_initial_xendomain()
@ 2006-08-18  7:12 Jan Beulich
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Beulich @ 2006-08-18  7:12 UTC (permalink / raw)
  To: xen-devel

Seeing many cases of uses like

#ifdef CONFIG_XEN_PRIVILEGED_GUEST
	if (is_initial_xendomain()) {
		...
	}
#endif

I'm wondering if it wasn't nice to eliminate the preprocessor
conditionals (which appear to be there only to cut down on
code size) by doing the conditional in a single place instead:

#ifdef CONFIG_XEN_PRIVILEGED_GUEST
#define is_initial_xendomain() (xen_start_info->flags & SIF_INITDOMAIN)
#else
#define is_initial_xendomain() 0
#endif

If that is acceptable, I'm ready to create a respective patch
(but I'd like to avoid spending time on it if there are objections).

Jan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-22 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18  7:56 is_initial_xendomain() Ian Pratt
2006-08-18  8:09 ` is_initial_xendomain() Gerd Hoffmann
2006-08-18  8:57 ` is_initial_xendomain() Keir Fraser
2006-08-18 12:15   ` is_initial_xendomain() Jan Beulich
2006-08-22 10:35     ` is_initial_xendomain() Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2006-08-18  7:12 is_initial_xendomain() Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.