Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751891AbdHGTHT (ORCPT ); Mon, 7 Aug 2017 15:07:19 -0400 Received: from foss.arm.com ([217.140.101.70]:53210 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbdHGTHR (ORCPT ); Mon, 7 Aug 2017 15:07:17 -0400 From: Marc Zyngier To: Dongjiu Geng Cc: , , , , , , , , , Subject: Re: [PATCH v2] KVM: arm64: pass vcpu esr_el2 and far_el2 sysre to user space In-Reply-To: <1502133454-5905-1-git-send-email-gengdongjiu@huawei.com> (Dongjiu Geng's message of "Tue, 8 Aug 2017 03:17:34 +0800") Organization: ARM Ltd References: <1502133454-5905-1-git-send-email-gengdongjiu@huawei.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Date: Mon, 07 Aug 2017 20:07:12 +0100 Message-ID: <86r2wnxkm7.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 18 On Tue, Aug 08 2017 at 3:17:34 am BST, Dongjiu Geng 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.