KVM: arm/arm64: vgic-v2: Only wipe LRs on vcpu exit
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 9 Feb 2016 17:36:09 +0000 (17:36 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 9 Mar 2016 04:23:56 +0000 (04:23 +0000)
commitcc1daf0b82f12040065bb1a77dd7945b9ef821f8
tree4b8281877b69e56c540d28e3648786d5f89d8e9a
parentd6400d77463d5c3dd386c27d07a236a07daaf33e
KVM: arm/arm64: vgic-v2: Only wipe LRs on vcpu exit

So far, we're always writing all possible LRs, setting the empty
ones with a zero value. This is obvious doing a lot of work for
nothing, and we're better off clearing those we've actually
dirtied on the exit path (it is very rare to inject more than one
interrupt at a time anyway).

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/hyp/vgic-v2-sr.c
This page took 0.040146 seconds and 5 git commands to generate.