]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Get rid of vgic_elrsr
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 4 Oct 2017 22:02:41 +0000 (00:02 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:20 +0000 (10:53 +0000)
commite7fc32b8b2a2f75ba5c79676cbfbc6a2a9c283ea
tree8b7bcba8c8e0df143b2f119ac37e89e5bdec827b
parent52b03628ff9cf7d1356ef0b3f5cbbab27ff02284
KVM: arm/arm64: Get rid of vgic_elrsr

There is really no need to store the vgic_elrsr on the VGIC data
structures as the only need we have for the elrsr is to figure out if an
LR is inactive when we save the VGIC state upon returning from the
guest.  We can might as well store this in a temporary local variable.

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>
include/kvm/arm_vgic.h
virt/kvm/arm/hyp/vgic-v2-sr.c
virt/kvm/arm/hyp/vgic-v3-sr.c
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c