[PATCH v2] KVM: arm64: pass vcpu esr_el2 and far_el2 sysre to user space

Marc Zyngier marc.zyngier at arm.com
Mon Aug 7 12:07:12 PDT 2017


On Tue, Aug 08 2017 at  3:17:34 am BST, Dongjiu Geng <gengdongjiu at huawei.com> wrote:
> For the firmware-first RAS solution, SEA and SEI is injected
> by the user space, user space needs to know the vcpu's esr_el2 and
> far_el2 value, so add them to sysreg. user space uses
> the IOCTL KVM_GET_ONE_REG can get their value.

Are we playing a game here? Look at my earlier reply: No _EL2 register
will ever be exposed as such to userspace in the context of an EL1 VM.

So if you want that information, extract it, expose what is required,
strictly what is required, and only when it is required.

In the meantime, I'm NAKing this patch, and any patch that will expose
_EL2 registers outside of nested virtualization.

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



More information about the linux-arm-kernel mailing list