OSDN Git Service

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)
commitbb5ed7035918d265189e2623d71c8f458713d3e9
tree8b7bcba8c8e0df143b2f119ac37e89e5bdec827b
parentb7787e6666061aea02be7ce084fe13c336acd0cf
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