implement is_hardware_domain using hardware_domain global
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 17 Apr 2014 08:10:33 +0000 (10:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Apr 2014 08:10:33 +0000 (10:10 +0200)
commit01feb234d0cb3bff248694d99397fb63a9757490
tree218b1a817fe53643aa559ff639fe96b34008a13f
parentb37bb2bfc24484fd3c4e11557ba98b28408160dc
implement is_hardware_domain using hardware_domain global

This requires setting the hardware_domain variable earlier in
domain_create so that functions called from it (primarily in
arch_domain_create) observe the correct results when they call
is_hardware_domain.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/setup.c
xen/arch/x86/setup.c
xen/common/domain.c
xen/include/xen/sched.h