[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] arm: initialise VCPU SCTLR in vcpu_initialise
commit c0b352d1980f2dc9c8ab05851d1f4517c8d5a258 Author: Ian Campbell <ian.campbell@xxxxxxxxxx> AuthorDate: Wed Mar 6 08:54:28 2013 +0000 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Apr 11 09:19:09 2013 +0100 arm: initialise VCPU SCTLR in vcpu_initialise Ensuring a sane initial starting state for vcpus other than domain 0s. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- 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 ac997d6..e308813 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -436,6 +436,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 e9c84c7..d4fb74f 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -455,8 +455,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_EL2); isb(); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |