# \[PATCH v4 16/21\] KVM: arm64: Save/Restore guest DISR\_EL1

- From: Marc Zyngier \<hidden\>
- Date: 2017-10-31 04:27:51 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2017/10/8760577
- Thread: https://ratatoskr.run/linux-arm-kernel/2017/10/8760577/t.md

```text
On Thu, Oct 19 2017 at  4:58:02 pm BST, James Morse [ref] wrote:
> If we deliver a virtual SError to the guest, the guest may defer it
> with an ESB instruction. The guest reads the deferred value via DISR_EL1,
> but the guests view of DISR_EL1 is re-mapped to VDISR_EL2 when HCR_EL2.AMO
> is set.
>
> Add the KVM code to save/restore VDISR_EL2, and make it accessible to
> userspace as DISR_EL1.
>
> Signed-off-by: James Morse <james.morse@arm.com>

Reviewed-by: Marc Zyngier <redacted>

	M.
-- 
Jazz is not dead. It just smells funny.
```
