Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1038047rwr; Thu, 27 Apr 2023 11:22:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PODxXIO1NflaUR0qZ54YsT6Yza4yBbjprmrPkrmgqjDvVtBYpiL6sCnvf+P2KOiS2C0aR X-Received: by 2002:aa7:888f:0:b0:63d:254a:3900 with SMTP id z15-20020aa7888f000000b0063d254a3900mr3324881pfe.5.1682619757524; Thu, 27 Apr 2023 11:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682619757; cv=none; d=google.com; s=arc-20160816; b=EyluUYOKM6j+MvIKUCrg6FPb0Zz1wwkGN+SwvCJO7fphiYQiMoVLF9P5UAwvv5PDZc KGhFiJ5TiNYZJD1u3bhPq+1YLy2dduZgyCJKkAI+AtdFTPQ470A8/Y0GrHRDxezx9cvs 0hgV6JO/Lg5lxy6czJXCV8JBZD+rkw2FXG4pDij5Jxm6bk56zWfYc/+bPGYPjxmUF2Ls obZhpWt1EmxktU8rOV8SM1RSZLB3tCmSoCZH+SEvz5pLgj7FLX1B6XkRr8aYkqn4wC/8 +M8PiYkmEcAcX9/Rsfz48aSrBWuwOF+VJmktppDltuPnJYrhgv7Yc7ei3t2NzA2G7dfh fStA== 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=RZV1+jmXUvq7qcgKvXHfZbe8mvyG5CBso5A6ECwAGFM=; b=yRj2uKuTCzUvAcDlQlFRb/7EUsGNbxBeJoO5GwVpnua7UENlYgoDy1NHKIr0MYIZpl Y7G/eR7BH4B5PnQLhfAmyPVP7JhoMFlnkqTZSeLOOnQCLjjqycGrwHxuRdIXvbonRCfu 9I+mrzbf6pHAQUTCELDbnELWdvqPa2Xl0zFIstl6h6eyBbw6RC2Ar+ByNDz5v2XS+wcy A58AM58uLJ4VhIeIm2zPx61jljdsSRoMeWbtZDLJ6jWQoESQtrp2C03rnQ279onv7qO4 LXFpbxeJcTccNuiIbD5/oiVA9Ryl8DFxV7Acr4UhouMFThFeZ0DTdgLfHOId7aiy4YA/ C8QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JXbtr7LY; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b0050bcb8e3a8csi18670012pgq.828.2023.04.27.11.22.21; Thu, 27 Apr 2023 11:22:37 -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=@intel.com header.s=Intel header.b=JXbtr7LY; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244151AbjD0SP6 (ORCPT + 99 others); Thu, 27 Apr 2023 14:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbjD0SP5 (ORCPT ); Thu, 27 Apr 2023 14:15:57 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286FE40C4 for ; Thu, 27 Apr 2023 11:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682619356; x=1714155356; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=785UCBXwGM5bsA0zPWVgzoLulCD7I5nsw2bYhst8zvE=; b=JXbtr7LYFgQYqbJRSfWNvY+IBCXXRJXHwVSZsbfqQbpE87Z9ooDVki1J ZQWl5dGAi9xHqt5IdNSuESYsE8AMtrAldBzFWZq+PsanqPkc9wqQUxRrw oWJU48w0a+XHvus5nN+04xe85E4N02nuYhYiPm0Qpd/88Wo61j5KiadLo Obdv8Ro2Q9J3XJKtAZSMMos4kxh3O8lI+FrqBpAltJk2LrZvae5IBVABL EkBn8lKLXl/Fwjwqq4Qc9vrtkUbebTmHol4WjUSxEjE9oX8oUMnEYfUR4 h++/RKv6QjKq3VDEYgwFP7+xJ6427xGcpgqZlxWxR9Y0bXo1K7WAgNqRQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="331808611" X-IronPort-AV: E=Sophos;i="5.99,232,1677571200"; d="scan'208";a="331808611" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 11:15:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="644792056" X-IronPort-AV: E=Sophos;i="5.99,232,1677571200"; d="scan'208";a="644792056" Received: from viggo.jf.intel.com (HELO ray2.sr71.net) ([10.54.77.144]) by orsmga003.jf.intel.com with ESMTP; 27 Apr 2023 11:15:55 -0700 From: Dave Hansen To: torvalds@linux-foundation.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen Subject: [GIT PULL] x86/tdx for 6.4 Date: Thu, 27 Apr 2023 11:15:48 -0700 Message-Id: <20230427181548.1070481-1-dave.hansen@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Hi Linus, Please pull a single x86/tdx change for 6.4. The original assembly here took two flags in %RSI to tweak its behavior at runtime. PeterZ recently axed one flag. Kill the other and tweak the 'output' mode with an assembly macro instead. This results in elimination of one push/pop pair and overall easier to read assembly. -- The following changes since commit e8d018dd0257f744ca50a729e3d042cf2ec9da65: Linux 6.3-rc3 (2023-03-19 13:27:55 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git tags/test.1682619270.x86_tdx_for_6.4 for you to fetch changes up to 7a3a401874bea02f568aa416ac29170d8cde0dc2: x86/tdx: Drop flags from __tdx_hypercall() (2023-03-22 11:36:05 -0700) ---------------------------------------------------------------- * Do conditional __tdx_hypercall() 'output' processing via an assembly macro argument rather than a runtime register. ---------------------------------------------------------------- Kirill A. Shutemov (1): x86/tdx: Drop flags from __tdx_hypercall() arch/x86/boot/compressed/tdx.c | 4 +-- arch/x86/coco/tdx/tdcall.S | 66 ++++++++++++++++++++++----------------- arch/x86/coco/tdx/tdx.c | 18 +++++------ arch/x86/include/asm/shared/tdx.h | 5 ++- 4 files changed, 51 insertions(+), 42 deletions(-)