]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
KVM: arm/arm64: Move vcpu_load call after kvm_vcpu_first_run_init
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Nov 2017 15:37:53 +0000 (16:37 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:09 +0000 (10:53 +0000)
commit829a58635497d7cc668133ac17daca9b78652661
treed77048bc816c717a2d73dd0a4d724145e64e955f
parent7a364bd5db1cfba50f3bde115db0dadc31b0169b
KVM: arm/arm64: Move vcpu_load call after kvm_vcpu_first_run_init

Moving the call to vcpu_load() in kvm_arch_vcpu_ioctl_run() to after
we've called kvm_vcpu_first_run_init() simplifies some of the vgic and
there is also no need to do vcpu_load() for things such as handling the
immediate_exit flag.

Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/arch_timer.c
virt/kvm/arm/arm.c
virt/kvm/arm/vgic/vgic-init.c