Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6138883iog; Thu, 23 Jun 2022 12:09:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSqJ2p2ENYcbbhdWTag29KPvlF4d9UtWykRFCwwH8Ih4qP033sZT0/OuALVItIHNnG6sAm X-Received: by 2002:a05:6402:d:b0:431:98fe:c5fd with SMTP id d13-20020a056402000d00b0043198fec5fdmr12673976edu.170.1656011363466; Thu, 23 Jun 2022 12:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011363; cv=none; d=google.com; s=arc-20160816; b=QwwKVDE2osivWdH5hsp5wXWnmEv5Fdb4jmuUdcfUiiQCPjTQbpVFDKg8iY56uqwHyT R99XF9snOY+ByWzwvp6Y+ChkAii43j6G5B6jDUeWGGF+rvc9Itj+mMcblDm/yMQ7NCOv DH5WssUL2grfcEQDvFSgchATdZF8PuefXMxHbR6bJwS8qS0srcttTz+qzYalq8l/pszP XA9kBk+CKcYW0BZg9CoJh2Ieoeflu4UVPItCFKsiqWp0z1Byj5/Ev37dYB+xGLJW/z7X VIEUc93bTLtrohtk2+oS0mAb/aOjXZy5EruIUquwiSLsqK+JVn29Mz9TbQKw6Zx+UU0A 7lfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/QNhGFz5nMyxRN78aUzoPAPJiuBTXBB6akkXc5VNPDU=; b=siT3WTWkiJ34mLZOSpZDbbVNqcA+CvdaR16zU8b1DrMdHRWGVnLvmsyIe97+NSj4mr uCJ8JkZ0LxuMXSkFqaGW7I++FMj9zIatOnVS6DInQIRHorbIMq1z21/ObJnkYgD4aXqa KQEKg6NyhSOngyxouI+9oVQxIzTZs+L7XicN5i5idBnvwc22+r8EpA7mfmbC0UWJD2y9 Z+RzJT0gtwFtxwCrlu2DsBv7q6PXlwhKm7gZSFK131XXP9CmlMZ5Ypb5LQoH6aJ60W9X yr+5eUkSmRDLq/Khaf+qTbbwwH1hMwjCDG+NvQqlvJ35dUc5kTN1WspqK7FBIhQ00ayN KpIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HYhTImS3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a056402270700b00435681044a9si470186edd.372.2022.06.23.12.08.58; Thu, 23 Jun 2022 12:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HYhTImS3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235208AbiFWRt5 (ORCPT + 99 others); Thu, 23 Jun 2022 13:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235526AbiFWRsR (ORCPT ); Thu, 23 Jun 2022 13:48:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4407CA3779; Thu, 23 Jun 2022 10:11:31 -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 ams.source.kernel.org (Postfix) with ESMTPS id 7818CB824B7; Thu, 23 Jun 2022 17:11:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0587C3411B; Thu, 23 Jun 2022 17:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004279; bh=2qBvmkSjuxSQepjkFgaqdMK1oOZ2y2xAVkxtUVL33b0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HYhTImS3uKPi1gEaEUogU50m4inX1rtiQPrk9lcSVEXqMHWklOUETN/uohxm3WfvC Zkq1JiQbzt8oG3qX6RySpfrsjvsnKNDGsjolF52FVhjntlsE8/woYWE4I+xTX3xvso t8q/gqHldixhdw/Bk8WR4g4AS3O1cvhaTTlFU7Po= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Borntraeger , Janis Schoetterl-Glausch , Claudio Imbrenda , Heiko Carstens Subject: [PATCH 5.10 01/11] s390/mm: use non-quiescing sske for KVM switch to keyed guest Date: Thu, 23 Jun 2022 18:44:34 +0200 Message-Id: <20220623164322.341041417@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164322.296526800@linuxfoundation.org> References: <20220623164322.296526800@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Christian Borntraeger commit 3ae11dbcfac906a8c3a480e98660a823130dc16a upstream. The switch to a keyed guest does not require a classic sske as the other guest CPUs are not accessing the key before the switch is complete. By using the NQ SSKE things are faster especially with multiple guests. Signed-off-by: Christian Borntraeger Suggested-by: Janis Schoetterl-Glausch Reviewed-by: Claudio Imbrenda Link: https://lore.kernel.org/r/20220530092706.11637-3-borntraeger@linux.ibm.com Signed-off-by: Christian Borntraeger Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman --- arch/s390/mm/pgtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c @@ -734,7 +734,7 @@ void ptep_zap_key(struct mm_struct *mm, pgste_val(pgste) |= PGSTE_GR_BIT | PGSTE_GC_BIT; ptev = pte_val(*ptep); if (!(ptev & _PAGE_INVALID) && (ptev & _PAGE_WRITE)) - page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 1); + page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 0); pgste_set_unlock(ptep, pgste); preempt_enable(); }