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 mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D98EC25B08 for ; Wed, 17 Aug 2022 10:56:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BAE2F4D16A; Wed, 17 Aug 2022 06:56:57 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2dRgOdJwQiTw; Wed, 17 Aug 2022 06:56:56 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B77524D15B; Wed, 17 Aug 2022 06:56:56 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C66914D13E for ; Wed, 17 Aug 2022 06:56:55 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cku-vlaOcBTk for ; Wed, 17 Aug 2022 06:56:54 -0400 (EDT) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id B13C14D13A for ; Wed, 17 Aug 2022 06:56:54 -0400 (EDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 881B961473; Wed, 17 Aug 2022 10:56:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7F17C433D6; Wed, 17 Aug 2022 10:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660733812; bh=ZNdNzMIFxsFYE2eCeNZAdKQ9jf8HnxCpnG6eMatEQsI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T//1zIjCmYwOk7lXGUJtuGwr4JkGDbc4QFdSoJSpEZ92MkOmwNqoaE74JFFai+R4e c8gzAXxiVxfJOIYBBMge0HoAk26wM0aNdyyIsGGy1t3fRKdWWFxzmEdGrmysZbV1su BzrFL8PE5vEJAzCIM4UgXAyQrVCgqlh79jWXTZ4lcq95y8Q7TkJSFyG7UZ6tr/Te3b h38khwY94b9lyFYT2Rw9M2ywuq+4lnlY0UG31o+RDuGZockELuMA1bjXOUaFbLjgL8 +TDBFninuVVe3jqZsmYg/nLGQaGoFledsszsEuL6CX0El6dE9vQYHOPRPZPRKRJuQf j05VfPTvitkmA== 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.95) (envelope-from ) id 1oOGjC-003iDB-OR; Wed, 17 Aug 2022 11:56:50 +0100 Date: Wed, 17 Aug 2022 11:56:50 +0100 Message-ID: <87sflvw32l.wl-maz@kernel.org> From: Marc Zyngier To: Alexandru Elisei Subject: Re: [PATCH v2 0/2] KVM: arm64: Uphold 64bit-only behavior on asymmetric systems In-Reply-To: References: <20220816192554.1455559-1-oliver.upton@linux.dev> <87tu6bw5dd.wl-maz@kernel.org> 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: alexandru.elisei@arm.com, oliver.upton@linux.dev, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: kvm@vger.kernel.org, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Wed, 17 Aug 2022 11:52:06 +0100, Alexandru Elisei wrote: > > Hi, > > On Wed, Aug 17, 2022 at 11:07:10AM +0100, Marc Zyngier wrote: > > On Tue, 16 Aug 2022 20:25:52 +0100, > > Oliver Upton wrote: > > > > > > Small series to fix a couple issues around when 64bit-only behavior is > > > applied. As KVM is more restrictive than the kernel in terms of 32bit > > > support (no asymmetry), we really needed our own predicate when the > > > meaning of system_supports_32bit_el0() changed in commit 2122a833316f > > > ("arm64: Allow mismatched 32-bit EL0 support"). > > > > > > Lightly tested as I do not have any asymmetric systems on hand at the > > > moment. Attention on patch 2 would be appreciated as it affects ABI. > > > > I don't think this significantly affect the ABI, as it is pretty > > unlikely that you'd have been able to execute the result, at least on > > VM creation (set PSTATE.M=USR, start executing, get the page fault on > > the first instruction... bang). > > > > You could have tricked it in other ways, but at the end of the day > > you're running a broken hypervisor on an even more broken system... > > Just FYI, you can create such a system on models, by running two clusters > and setting clusterX.max_32bit_el=-1. Or you can have even crazier > configurations, where AArch32 support is present on only one cluster, and > only for EL0. You mean, just as crazy as some of the systems out there? :D Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 66D7CC25B08 for ; Wed, 17 Aug 2022 10:58:19 +0000 (UTC) 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=E//lgCBjYP4jlekDuudkuBG72okEsZ1QcPkillK3EFo=; b=0K+ZEfUJ9tSTBe P68eCLWNWFsP+w845j/oAZfIYOocO2GH/51uYwPM4l+4rB6LMHxEiga4T8SQqLeDiloh1WtmSviz6 J36SFep7IC4AvO9wwJ1souavLO9JkiB9RnNuclS/V0PxFmxvWsteHQ/AZWsS7lKZdD2UQEZWVHCi2 hhFao0jQ6PosfH151iuax6Jlu+Gfmvt4bJlgTigFsF9xu/mB4W9tSE3ctrijknr/8eAdd/nuXpx7f S0lybqncHNkCkqUVf9pHRVaQA4XIzS2FaxBQyrz4s/s+g7CLNgVVfVwwjsdKq2rv069DcBrrUSxuu YUIy0nmqOqYCnxya4/AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOGjR-000x30-UQ; Wed, 17 Aug 2022 10:57:06 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOGjM-000wwK-8j for linux-arm-kernel@lists.infradead.org; Wed, 17 Aug 2022 10:57:01 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 881B961473; Wed, 17 Aug 2022 10:56:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7F17C433D6; Wed, 17 Aug 2022 10:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660733812; bh=ZNdNzMIFxsFYE2eCeNZAdKQ9jf8HnxCpnG6eMatEQsI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T//1zIjCmYwOk7lXGUJtuGwr4JkGDbc4QFdSoJSpEZ92MkOmwNqoaE74JFFai+R4e c8gzAXxiVxfJOIYBBMge0HoAk26wM0aNdyyIsGGy1t3fRKdWWFxzmEdGrmysZbV1su BzrFL8PE5vEJAzCIM4UgXAyQrVCgqlh79jWXTZ4lcq95y8Q7TkJSFyG7UZ6tr/Te3b h38khwY94b9lyFYT2Rw9M2ywuq+4lnlY0UG31o+RDuGZockELuMA1bjXOUaFbLjgL8 +TDBFninuVVe3jqZsmYg/nLGQaGoFledsszsEuL6CX0El6dE9vQYHOPRPZPRKRJuQf j05VfPTvitkmA== 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.95) (envelope-from ) id 1oOGjC-003iDB-OR; Wed, 17 Aug 2022 11:56:50 +0100 Date: Wed, 17 Aug 2022 11:56:50 +0100 Message-ID: <87sflvw32l.wl-maz@kernel.org> From: Marc Zyngier To: Alexandru Elisei Cc: Oliver Upton , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, will@kernel.org Subject: Re: [PATCH v2 0/2] KVM: arm64: Uphold 64bit-only behavior on asymmetric systems In-Reply-To: References: <20220816192554.1455559-1-oliver.upton@linux.dev> <87tu6bw5dd.wl-maz@kernel.org> 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: alexandru.elisei@arm.com, oliver.upton@linux.dev, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, will@kernel.org 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-20220817_035700_483880_F06EAF09 X-CRM114-Status: GOOD ( 28.87 ) 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 Wed, 17 Aug 2022 11:52:06 +0100, Alexandru Elisei wrote: > > Hi, > > On Wed, Aug 17, 2022 at 11:07:10AM +0100, Marc Zyngier wrote: > > On Tue, 16 Aug 2022 20:25:52 +0100, > > Oliver Upton wrote: > > > > > > Small series to fix a couple issues around when 64bit-only behavior is > > > applied. As KVM is more restrictive than the kernel in terms of 32bit > > > support (no asymmetry), we really needed our own predicate when the > > > meaning of system_supports_32bit_el0() changed in commit 2122a833316f > > > ("arm64: Allow mismatched 32-bit EL0 support"). > > > > > > Lightly tested as I do not have any asymmetric systems on hand at the > > > moment. Attention on patch 2 would be appreciated as it affects ABI. > > > > I don't think this significantly affect the ABI, as it is pretty > > unlikely that you'd have been able to execute the result, at least on > > VM creation (set PSTATE.M=USR, start executing, get the page fault on > > the first instruction... bang). > > > > You could have tricked it in other ways, but at the end of the day > > you're running a broken hypervisor on an even more broken system... > > Just FYI, you can create such a system on models, by running two clusters > and setting clusterX.max_32bit_el=-1. Or you can have even crazier > configurations, where AArch32 support is present on only one cluster, and > only for EL0. You mean, just as crazy as some of the systems out there? :D 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 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12E30C32772 for ; Wed, 17 Aug 2022 10:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238810AbiHQK47 (ORCPT ); Wed, 17 Aug 2022 06:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239028AbiHQK46 (ORCPT ); Wed, 17 Aug 2022 06:56:58 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED24F647E8 for ; Wed, 17 Aug 2022 03:56:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id CF8DBCE1C60 for ; Wed, 17 Aug 2022 10:56:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7F17C433D6; Wed, 17 Aug 2022 10:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660733812; bh=ZNdNzMIFxsFYE2eCeNZAdKQ9jf8HnxCpnG6eMatEQsI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T//1zIjCmYwOk7lXGUJtuGwr4JkGDbc4QFdSoJSpEZ92MkOmwNqoaE74JFFai+R4e c8gzAXxiVxfJOIYBBMge0HoAk26wM0aNdyyIsGGy1t3fRKdWWFxzmEdGrmysZbV1su BzrFL8PE5vEJAzCIM4UgXAyQrVCgqlh79jWXTZ4lcq95y8Q7TkJSFyG7UZ6tr/Te3b h38khwY94b9lyFYT2Rw9M2ywuq+4lnlY0UG31o+RDuGZockELuMA1bjXOUaFbLjgL8 +TDBFninuVVe3jqZsmYg/nLGQaGoFledsszsEuL6CX0El6dE9vQYHOPRPZPRKRJuQf j05VfPTvitkmA== 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.95) (envelope-from ) id 1oOGjC-003iDB-OR; Wed, 17 Aug 2022 11:56:50 +0100 Date: Wed, 17 Aug 2022 11:56:50 +0100 Message-ID: <87sflvw32l.wl-maz@kernel.org> From: Marc Zyngier To: Alexandru Elisei Cc: Oliver Upton , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, will@kernel.org Subject: Re: [PATCH v2 0/2] KVM: arm64: Uphold 64bit-only behavior on asymmetric systems In-Reply-To: References: <20220816192554.1455559-1-oliver.upton@linux.dev> <87tu6bw5dd.wl-maz@kernel.org> 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") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: alexandru.elisei@arm.com, oliver.upton@linux.dev, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, 17 Aug 2022 11:52:06 +0100, Alexandru Elisei wrote: > > Hi, > > On Wed, Aug 17, 2022 at 11:07:10AM +0100, Marc Zyngier wrote: > > On Tue, 16 Aug 2022 20:25:52 +0100, > > Oliver Upton wrote: > > > > > > Small series to fix a couple issues around when 64bit-only behavior is > > > applied. As KVM is more restrictive than the kernel in terms of 32bit > > > support (no asymmetry), we really needed our own predicate when the > > > meaning of system_supports_32bit_el0() changed in commit 2122a833316f > > > ("arm64: Allow mismatched 32-bit EL0 support"). > > > > > > Lightly tested as I do not have any asymmetric systems on hand at the > > > moment. Attention on patch 2 would be appreciated as it affects ABI. > > > > I don't think this significantly affect the ABI, as it is pretty > > unlikely that you'd have been able to execute the result, at least on > > VM creation (set PSTATE.M=USR, start executing, get the page fault on > > the first instruction... bang). > > > > You could have tricked it in other ways, but at the end of the day > > you're running a broken hypervisor on an even more broken system... > > Just FYI, you can create such a system on models, by running two clusters > and setting clusterX.max_32bit_el=-1. Or you can have even crazier > configurations, where AArch32 support is present on only one cluster, and > only for EL0. You mean, just as crazy as some of the systems out there? :D Thanks, M. -- Without deviation from the norm, progress is not possible.