[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/9] arm: initialise VCPU SCTLR in vcpu_initialise
From: Ian Campbell <ian.campbell@xxxxxxxxxx> Ensuring a sane initial starting state for vcpus other than domain 0s. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- xen/arch/arm/domain.c | 2 ++ xen/arch/arm/domain_build.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index 9be83a6..f369871 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -435,6 +435,8 @@ int vcpu_initialise(struct vcpu *v) if ( is_idle_vcpu(v) ) return rc; + v->arch.sctlr = SCTLR_BASE; + if ( (rc = vcpu_vgic_init(v)) != 0 ) return rc; diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 07303fe..bdf41fa 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -373,8 +373,6 @@ int construct_dom0(struct domain *d) } #endif - v->arch.sctlr = SCTLR_BASE; - WRITE_SYSREG(HCR_PTW|HCR_BSU_OUTER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI, HCR_EL2); isb(); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |