From: Christoffer Dall Date: Tue, 26 Aug 2014 12:33:02 +0000 (+0200) Subject: arm/arm64: KVM: Complete WFI/WFE instructions X-Git-Tag: fixes-v3.17-rc4~13^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e0127f9e362b36aa35f17b1a3d52bca9322a3a;p=pandora-kernel.git arm/arm64: KVM: Complete WFI/WFE instructions The architecture specifies that when the processor wakes up from a WFE or WFI instruction, the instruction is considered complete, however we currrently return to EL1 (or EL0) at the WFI/WFE instruction itself. While most guests may not be affected by this because their local exception handler performs an exception returning setting the event bit or with an interrupt pending, some guests like UEFI will get wedged due this little mishap. Simply skip the instruction when we have completed the emulation. Cc: Acked-by: Marc Zyngier Cc: Ard Biesheuvel Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed