Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4925746rwl; Tue, 28 Mar 2023 13:21:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdYLQCbJV1S/qARyJCgv/DkXOatEKTjEWnKOt8oNXIeLLJ3EqX2VuVTk5x6Cw4HYWTfHXR X-Received: by 2002:a05:6402:8d6:b0:502:2953:8ecb with SMTP id d22-20020a05640208d600b0050229538ecbmr13776325edz.13.1680034876941; Tue, 28 Mar 2023 13:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680034876; cv=none; d=google.com; s=arc-20160816; b=Gt1Vz38Pa8oI4LpCkRczi3MkkTFnYkPPYziWKtpgyjBRSwdVR38Yk5maSArdEteAev YgelL100z2Wj4dq13sV18Otg1U2r4pfCAf89P8UnwpgSIqPC64/pBVNmkVNXxVAiCC6C /LhNlLywB0tGnOs6Yx0JmktTx6emj3tPh7xuXhH3hdNQqKTC75kXtXByTsS7rO5YXAwS s7zkSFvb3Njc9RMTFym8sLRyCbJypKVeVcDi1KhApiijF/c5jc8sGsWFmPnilozmUtFg y/FWOZe0TO+AmxhlFesdfXC1QON1QZ9WQ0K9t7VmFAfzl/oPxlulEQEfA5IK4AV9xChu Kwmw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kFsCdhfkmyUE8dh7nh5WbRx/wlVVqOjTxXee2PAdFbg=; b=h9k1q924rnRZ0bPjDI1eCG6JTn87wpeMKTNsEGUTw5jT8cvSm+zLGZ9/ReSWVoWCCz wxh/pSt66Yo2TkEtyXTF9C8sm7QMfITpfXpKJ8uX+qshKPa4wzU1XF1CYcF2wEQ5qdfS 8ne60qaBaaQGmyK5SLC7pT3fZTtfzlU4t0NOqSoLju2ukQXMizUgqkuuJ6z7Kklmdknw Zy1k5kjelPYZSHZOFlSoHwjsBB1nDODsBGTxuO2hUo+Z1P+TMYHgff/pN28GkIP/ojmE vm5pl2o9cmdUyaDt2/jbvMix82A9PSKzJB1cjUidd0uLclEYk9+0fNH/xByE4okoQC8D O0jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=FdF+186Y; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a056402164600b004f0f1978619si31097540edx.151.2023.03.28.13.20.53; Tue, 28 Mar 2023 13:21:16 -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=@alien8.de header.s=dkim header.b=FdF+186Y; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbjC1URt (ORCPT + 99 others); Tue, 28 Mar 2023 16:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjC1URo (ORCPT ); Tue, 28 Mar 2023 16:17:44 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A833144A7 for ; Tue, 28 Mar 2023 13:17:15 -0700 (PDT) Received: from zn.tnic (p5de8e687.dip0.t-ipconnect.de [93.232.230.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 89F7C1EC0338; Tue, 28 Mar 2023 22:17:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1680034633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=kFsCdhfkmyUE8dh7nh5WbRx/wlVVqOjTxXee2PAdFbg=; b=FdF+186YrHjVu3ePm9jtyPXYlfhvUxb9NJmmildi12nK5FMk2xZKhBizN+BdswpJesq9sg nK96OAbvT/WfeRyNtACv91lEZ3ZBiJYe8wn+3nqoTrePxuRl530lHDcL3yAIdxyd4yGVH8 9cQPHfeSS9A/MurkOl0gDDi8ovRtlzw= From: Borislav Petkov To: Joerg Roedel , Tom Lendacky Cc: X86 ML , LKML Subject: [PATCH v2 0/2] SEV-*: Cleanups Date: Tue, 28 Mar 2023 22:17:10 +0200 Message-Id: <20230328201712.25852-1-bp@alien8.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 From: "Borislav Petkov (AMD)" Hi, here's v2. tglx says it is better for cc_platform_has() and descendants to be noinstr vs inlining it as the whole code is a bit bigger for that. I've queued the export of cc_vendor already so that the parallel CPU bringup stuff can use it: https://git.kernel.org/tip/5ae57743f578725a5dadb6f31d7798ee55e6e967 Thx. Borislav Petkov (AMD) (2): x86/coco: Mark cc_platform_has() and descendants noinstr x86/sev: Get rid of special sev_es_enable_key arch/x86/coco/core.c | 8 ++++---- arch/x86/include/asm/sev.h | 11 +++++++---- arch/x86/kernel/sev.c | 5 ----- 3 files changed, 11 insertions(+), 13 deletions(-) -- 2.35.1