]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
arm: KVM: Preserve pending Virtual Abort in world switch
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Sep 2016 13:02:08 +0000 (14:02 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 8 Sep 2016 10:53:00 +0000 (12:53 +0200)
commit1f7e378d1235a3cb5c9cdd8c62fe13cb6c3cf157
tree8b5226c1b222b755a028199d609b323d8aa8d159
parent395ea79ebe55d6b01bb8f67bfad0550e6b7cd6d6
arm: KVM: Preserve pending Virtual Abort in world switch

The HCR.VA bit is used to signal an Abort to a guest, and has
the peculiar feature of getting cleared when the guest has taken
the abort (this is the only bit that behaves as such in this register).

This means that if we signal such an abort, we must leave it in
the guest context until it disappears from HCR, and at which point
it must be cleared from the context.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/hyp/switch.c