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 54685C433EF for ; Wed, 29 Sep 2021 13:39:56 +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 1C87161216 for ; Wed, 29 Sep 2021 13:39:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1C87161216 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HVRIDtK7prPmTpmqnlmBsLlA77iBbjbsa7cJveTy6oo=; b=gA3gUd3QiYqViC oTypbZH4hFNUjzYtWm4dxf/PBuByWnI1s2VC15jgs2h9R7AFy7P2A4ec2dxp88FFLR+FazYLnN+NA 6EMo0d9/SeAxFXPtkuaeP4pvO/Mm6i+/sIHKElIswwb+RkqijRukaVfuHwx3atf+PaHo63IvDRjTv lVB2vOK7XSVY4FbUsR7Xy1vNmfn3bWB63YdkLOeGzAzjY6UnDWVlkyCtfMErpi8/uPUzKjEilAp2L F0NcPtjRQwqdLCX9eHMVdQpk0+tKevmcxJkDRlXJ8dzf+yJ9f6aqpeH//SdphzFj+mEZdgdfSMN7e 9rXeZVGYBjo7ngr7L8ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVZmP-00BAKw-IG; Wed, 29 Sep 2021 13:37:50 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVZmL-00BAJH-RV for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 13:37:47 +0000 Received: by mail-wr1-x42e.google.com with SMTP id x20so4304472wrg.10 for ; Wed, 29 Sep 2021 06:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GQngVFrcSLt3738tom0raKa/V+AyipPcvJvJUkznr8o=; b=Sb8vISEBHGBaDEV7cQFVHvQeXaw47giV2fPWGnOdgbplmnLy+Ycj6u1WIDNRGDsR2l 7dQ57cJ2X0xfUHnT8RpOk5DB71L4xb80F2L63SSs2WW6X3mtw71lrFdpwEbRSN9f7/Wg nXbhesNfJgMcvnruu3JAKXlAE4/z48pC3iDiyc/29BQ3ecEn3xTPlAJG7LPr9EUEQZiB tRu2eK/6PoEPojOEcS+8sLahbrorHywurQy1lx6h+Y+4JYxw+lKS8qINu+SWYx/OAS5M 91QzE8SF9NytVtZAZzGtl4VzQsYp3MOXiGY5a/UKlBB47lv46EMRlxNac268k1SDQ98/ ZqQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GQngVFrcSLt3738tom0raKa/V+AyipPcvJvJUkznr8o=; b=f6rdCPVYiVUa8ISIGwKa5i2ufgCTGMWrElrFaaGhgF+xPFPXhQD91qgsxeMmIlPWRR FnlyzEJKw/Zvj5sye2L744dWEBSXPXhRiZEPaFYvBkKV3Wmsx9+nmw9uXses0t00UfCa +YJ9FP2dWOaYdk/247HFl+FWwVPgURJSvHmHSrwgJGMldGSl6dNUG2TZH2smJHqLJuO6 gTpUrwQP7lOGxXaH1uoRTZnhhTbT0V2FwBeaQR853lXQzU0paA0WzH2cpIMHlFRNtJod Rb+K62USpp4HNZS8pWDizikV6nPxfsw6OzF558roxv8NCcf8p/7MN77kqZ7yTX7Mc9DC PRBw== X-Gm-Message-State: AOAM533joVULIMB11pfdFQ/a3CYvsts6KnPm2no0QmZMZEXoeFQLLsqy zGm+TBlqwX77imbnn93LV9zvVzkqH7F6CA== X-Google-Smtp-Source: ABdhPJyUsyDaeAJIw09c6/ICrEZ1hJdgcEoeKOJbnbHV1QOQ+ACfduyIGWrR/uKyoe1BvuBJ5kIr3A== X-Received: by 2002:adf:d1c5:: with SMTP id b5mr7082197wrd.252.1632922663834; Wed, 29 Sep 2021 06:37:43 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:1ebb:fd0f:cf53:11c5]) by smtp.gmail.com with ESMTPSA id a63sm1640423wme.18.2021.09.29.06.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 06:37:43 -0700 (PDT) Date: Wed, 29 Sep 2021 14:37:40 +0100 From: Quentin Perret To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Catalin Marinas , Alexandru Elisei , Suzuki K Poulose , kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH 2/5] KVM: arm64: Reject stub hypercalls after pKVM has been initialised Message-ID: References: <20210923112256.15767-1-will@kernel.org> <20210923112256.15767-3-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210923112256.15767-3-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_063745_935961_12397982 X-CRM114-Status: GOOD ( 10.32 ) 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 Thursday 23 Sep 2021 at 12:22:53 (+0100), Will Deacon wrote: > The stub hypercalls provide mechanisms to reset and replace the EL2 code, > so uninstall them once pKVM has been initialised in order to ensure the > integrity of the hypervisor code. > > To ensure pKVM initialisation remains functional, split cpu_hyp_reinit() > into two helper functions to separate usage of the stub from usage of > pkvm hypercalls either side of __pkvm_init on the boot CPU. > > Cc: Marc Zyngier > Cc: Quentin Perret > Signed-off-by: Will Deacon Reviewed-by: Quentin Perret Thanks, Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel