From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2C77C433EF for ; Tue, 12 Oct 2021 14:22:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A1F9600D3 for ; Tue, 12 Oct 2021 14:22:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9A1F9600D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A/t8IEe9R+akPQeaP+G+IKQpCXIdo936L5oKV7LTTDM=; b=HZL3H/OGNQgX1t pzVhMQsWCFxUtgo5YnQDbJfO8CaTSUuMNa/APde/Jkuk3s85JcGIrtKbW4swS8st2EDfS8EhiMSQN QVoYi08Vfor1hppE1xy4BPnr+aQCcyxfBpluJpZcjZUeVvZfEKxtPa2puN+f3NlrHq/2hmCwN1+76 SOGzgwh4cdYDE8R2BvPHDytGcrn6BASin/F8ZDVlA/jlO6Tit8CPmh9BFRbdT0a3pK3wRR8aQN6S8 l6Lp2L1t2zzVO0b7LDkzY4v/f+Nab3CIEtXkddz1u2QwX8DH11gXm1W5lOaXE5eMYQ4zEI6XMXLpg RQ8njJrJh6OILahIOnNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1maIdn-00DAhY-E4; Tue, 12 Oct 2021 14:20:27 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1maIdj-00DAgm-Mj for linux-arm-kernel@lists.infradead.org; Tue, 12 Oct 2021 14:20:24 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 464F4608FE; Tue, 12 Oct 2021 14:20:23 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1maIdh-00GHHb-2V; Tue, 12 Oct 2021 15:20:21 +0100 Date: Tue, 12 Oct 2021 15:20:20 +0100 Message-ID: <87ee8qpbob.wl-maz@kernel.org> From: Marc Zyngier To: Andrew Jones Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kernel-team@android.com Subject: Re: [PATCH] KVM: arm64: Fix reporting of endianess when the access originates at EL0 In-Reply-To: <20211012120040.4tfkzlm7uju2n3sa@gator> References: <20211012112312.1247467-1-maz@kernel.org> <20211012120040.4tfkzlm7uju2n3sa@gator> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: drjones@redhat.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211012_072023_797286_AD11770E X-CRM114-Status: GOOD ( 23.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 12 Oct 2021 13:00:40 +0100, Andrew Jones wrote: > > On Tue, Oct 12, 2021 at 12:23:12PM +0100, Marc Zyngier wrote: > > We currently check SCTLR_EL1.EE when computing the address of > > a faulting guest access. However, the fault could have occured at > > EL0, in which case the right bit to check would be SCTLR_EL1.E0E. > > > > This is pretty unlikely to cause any issue in practice: You'd have > > to have a guest with a LE EL1 and a BE EL0 (or the other way around), > > and have mapped a device into the EL0 page tables. > > I wonder if that's something a usermode network driver might want? I don't know what it wants, but I don't want it the first place! Think of what a kernel would need to do to run its userspace in a different endianness... Userspace device access is just an additional headache. Whoever does this needs urgent medical attention! > Reviewed-by: Andrew Jones Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel