xen/arm: read ACTLR on the pcpu where the vcpu will run
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Mar 2018 19:29:23 +0000 (11:29 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Mar 2018 19:32:51 +0000 (11:32 -0800)
commit5622172378960f20ef0f03c0308cd9233fe86f0d
tree8666f8c5d5172921c7815730b4f050f8f9e1f137
parentf22f8bc41d7183be06dd259d2fe51416b92ce59e
xen/arm: read ACTLR on the pcpu where the vcpu will run

On big.LITTLE systems not all cores have the same ACTLR. Instead of
reading ACTLR and setting v->arch.actlr in vcpu_initialise, do it later
on the same pcpu where the vcpu will run.

This way, assuming that the vcpu has been created with the right pcpu
affinity, the guest will be able to read the right ACTLR value, matching
the one of the physical cpu.

Also move processor_vcpu_initialise(v) to continue_new_vcpu as it
can modify v->arch.actlr.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain.c