To incrementally convert create_dom0() into being a generalized domain construction function, move the dom0 specific cpuid policy behind the control domain capability.
Signed-off-by: Daniel P. Smith <dpsm...@apertussolutions.com> --- xen/arch/x86/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 409630089d29..298e27848dda 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1059,7 +1059,8 @@ static struct domain *__init create_dom0(struct boot_info *bi) bd->d = d; - init_dom0_cpuid_policy(d); + if ( has_dom0_caps(bd) ) + init_dom0_cpuid_policy(bd->d); if ( domain_vcpu0_create(bd) == NULL ) panic("Error creating %pdv0\n", d); -- 2.30.2