“a9746e4089d6226bdd6b4463e5cdd3b4d1c94059”上不存在“tools/usb/usbip/git@gitcode.net:openharmony/kernel_linux.git”
提交 20163403 编写于 作者: M Marc Zyngier 提交者: Christoffer Dall

arm64: KVM: Allow an exit code to be tagged with an SError

Similarily to EL1, an asynchronous abort can be triggered whilst
running at EL2. But instead of making that a new error code,
we need to communicate it to the rest of KVM together with
the exit reason. So let's hijack a single bit that allows the
exception code to be tagged with a "pending SError" information.
Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
上级 1b51e5fa
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#include <asm/virt.h> #include <asm/virt.h>
#define ARM_EXIT_WITH_SERROR_BIT 31
#define ARM_EXCEPTION_CODE(x) ((x) & ~(1U << ARM_EXIT_WITH_SERROR_BIT))
#define ARM_SERROR_PENDING(x) !!((x) & (1U << ARM_EXIT_WITH_SERROR_BIT))
#define ARM_EXCEPTION_IRQ 0 #define ARM_EXCEPTION_IRQ 0
#define ARM_EXCEPTION_EL1_SERROR 1 #define ARM_EXCEPTION_EL1_SERROR 1
#define ARM_EXCEPTION_TRAP 2 #define ARM_EXCEPTION_TRAP 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册