Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5978805pxb; Mon, 14 Feb 2022 12:12:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzchwOE5Hsnfu0wYlag0HWQS6dP6pTIt3h/0+zVP8JtvU/91avbyZOaSuTaOHum8ShT09qX X-Received: by 2002:a05:6a00:14c9:: with SMTP id w9mr330165pfu.69.1644869522872; Mon, 14 Feb 2022 12:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644869522; cv=none; d=google.com; s=arc-20160816; b=T0xB8A8FXUa5aK/OYK21aRC/MalUU5XCb+/Bc4NC009FvH9pXNqc8LeKBIVFv8OYZL xE7rpc4UD5bL9fV0QLeQOG2IlwvUCJibJfLEx0jmy5W5duU74Fx+iYXX+DWm64hMBWaD ZawwAHXgUDRMNrTOsm2JWw5AjZCGmsasA3My6dTVRCB6VKAkIvkABrMvZsSLJyU14H9i ba1AG3HFJKa8NIpeal5M6U1WsG1HNFqqQwuSYj7Js5nMHTI+cpMhM1+zubKA1KqFMlPn wIVHVbwxTJSubCpNpQnXsD/s7N1NBdPjiH0IFWTjxbVkttiNhQA0Xd71d5/q7beUxfpS /ZQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=S42n59SNB+d3HwedoR1dJygq2vqT/hl0uK3ihfkqMck=; b=vRRBg0KFpA4R0iOJJjUe5lpvV+K6ZAKiBa9SjRtzAkSWAcDcweMowAy1hDvtVlsnW4 x6xS0bQNxirBRb+L5C3SeDoaIvisCQu+JCbqskFN2bqbQphTr97YSIl1mZpBgI491bdm 6QwEAecxGQiRu7+uCyFVVLYYQOFsWASeCvogsaAscFtINUtDAuJq/TluwFgajsG0J6GF 8JzwqpbOHuHDFKbGlnzGOEuQs6FivoiJztnhHEErNA5avFSmwztSmn0Ze8ygFMYlviaZ 0SWfu5/P0fo+aJnCFRY5hoRwST7uE57zyoEzsOtBef6A2J6wIBsYsm5DcaLTwEe7MHcM FZ2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nqbpe/Mw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v3si684431pgv.4.2022.02.14.12.12.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:12:02 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nqbpe/Mw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7DC2163077; Mon, 14 Feb 2022 11:49:00 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352521AbiBNLqG (ORCPT + 99 others); Mon, 14 Feb 2022 06:46:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352730AbiBNLpI (ORCPT ); Mon, 14 Feb 2022 06:45:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9779FD5 for ; Mon, 14 Feb 2022 03:41:18 -0800 (PST) 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 4F54661230 for ; Mon, 14 Feb 2022 11:41:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD4C3C340E9; Mon, 14 Feb 2022 11:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644838877; bh=3BY0+oBaGeuz3GbarqpFktWz85tdWsJYhePtRlV0rWY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nqbpe/MwLiK0hjcHwjC4tZ3oLrBfkYvzpNDqStYjFR0Q7IQfDUy2t4hCB2UiMj10t /dvm2YnhufyVgqGEOLrb21tdRZrkik3idw/fw3wGTl6RYoXvuk04T/WQrmVuhldrBy A82KnXGws7miSkRqw8ReUHeEXIFgzbyVD0n9PLLr9RvI37oz/k2JmBeGlARlA41g8A NC+38QGNalX4LCz6HaASSQlCBL6gwJtLeCz/ICG6MFaPbeUbpAZPbABYrbWFgfD0lO TNquDn9PmmhGQ0tpnhF8d0Bi4sUzc8DMbax8hepXrHpUOw4ZDvo/DQPMMuMm/meM6G tENKayKzRNkFg== 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 1nJZjH-007l6H-Bh; Mon, 14 Feb 2022 11:41:15 +0000 Date: Mon, 14 Feb 2022 11:41:14 +0000 Message-ID: <87mtit4qw5.wl-maz@kernel.org> From: Marc Zyngier To: Kalesh Singh Cc: will@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, Catalin Marinas , James Morse , Alexandru Elisei , Suzuki K Poulose , Ard Biesheuvel , Mark Rutland , Pasha Tatashin , Joey Gouly , Peter Collingbourne , Andrew Walbran , Andrew Scull , Paolo Bonzini , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH 0/7] KVM: arm64: Hypervisor stack enhancements In-Reply-To: <20220210224220.4076151-1-kaleshsingh@google.com> References: <20220210224220.4076151-1-kaleshsingh@google.com> 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: kaleshsingh@google.com, will@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, catalin.marinas@arm.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, ardb@kernel.org, mark.rutland@arm.com, pasha.tatashin@soleen.com, joey.gouly@arm.com, pcc@google.com, qwandor@google.com, ascull@google.com, pbonzini@redhat.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Feb 2022 22:41:41 +0000, Kalesh Singh wrote: > > This series is based on v5.17-rc3 and adds the following stack features to > the KVM nVHE hypervisor: > > == Hyp Stack Guard Pages == > > Based on the technique used by arm64 VMAP_STACK to detect overflow. > i.e. the stack is aligned to twice its size which ensure that the > 'stack shift' bit of any valid SP is 0. The 'stack shift' bit can be > tested in the exception entry to detect overflow without corrupting GPRs. Having quickly parsed the code, this seems to only be effective for pKVM and the EL2-allocated stack. Is there any technical reason not to implement this for the much more common case of 'classic' KVM in nVHE mode? Thanks, M. -- Without deviation from the norm, progress is not possible.