Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3262699lfo; Mon, 23 May 2022 00:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgxaqGEAA9utbF/S2JHERFa/HK1NJWgYwdZ6GmkMZzIrPokXTcX3lYmRT7t43z+ZWbvjhd X-Received: by 2002:a17:902:ea43:b0:161:f1fb:fb28 with SMTP id r3-20020a170902ea4300b00161f1fbfb28mr15167592plg.20.1653290141230; Mon, 23 May 2022 00:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290141; cv=none; d=google.com; s=arc-20160816; b=ZNZ+6fe/76jvkBWWKz/7wpvIjh0oHuqQmJ1VN8t3WJiramFAVnNs1raiUADJXrbynS 15kc1Rf6gfpN55iGvlBGcaotVJwCLgv0vfw2o+p5HE5fO9u+2+7UUl3/VjMpxpV5WF4C AlFDieex1Z0ahhiw/DOUSc6WMzRgtfrf87rMUro9+sMsc6wSOSjzl0MLUqAzOIsaJDrC /uczpioqBGbMD85rsf3s+YCn3CcKTuhP/DgzdtBnOf69pH1DlrgUPIn57PCr8UPt/wGx txyykDwIoLZIHN+H95/k/GreZQeVcfvJ/S1Tt0PeV/9ZDEU+fJ0Hzvda27NtkVfxsYfu 0D2A== 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=of56utwvWy/uzRTYTpT4X9HXZWigw6t/gvPs03oOIZc=; b=racN8qhLSpmxqQmbTkMhRlQjlfFUhkb8j0Lh3gnfqSEFukUoRXTmjUyWaevGzYFC3J RTDKBam9ONgI7/1Wv79+PbagGkM9reUt/G6Dsxm4qJ3uT5nwqPtqeu3x70SNJe/Oe2as 9Wj9QpP4ERLEnoIKeMK+fzpWExE0jV6Vt1Ti8BfU+pY1qo6ySWAduCtA7aMF5hBM112C 5t24Heud/FRQA8wdG5FQOARu7DrlWLdUVYtWpHQ5Nshl/QA3F1GkyOT7hIXZrqlD25Zo atyL8ol5oa0ZKSja2kK1UDsLlldIbASshrDBiWye8EXTOTTCTPO5e+6vYW+S2sfpAPrX IAwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CzEREJMT; 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=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b10-20020a170902d50a00b0015eb10a9f67si9761456plg.379.2022.05.23.00.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:15:41 -0700 (PDT) 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=@intel.com header.s=Intel header.b=CzEREJMT; 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=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A376E8723A; Sun, 22 May 2022 23:33:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345083AbiETDN4 (ORCPT + 99 others); Thu, 19 May 2022 23:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235760AbiETDNi (ORCPT ); Thu, 19 May 2022 23:13:38 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 875EF149DA6 for ; Thu, 19 May 2022 20:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653016417; x=1684552417; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AOGe5WBFDH67nOrGeCJ89LRrakHSBnpfhodZrhPsQeE=; b=CzEREJMTRY/6MzET3luy7dtroeFgNmbFQvX8uF8g+HF80jqVC1HbCH0S I6ww36i7W6qdKULhCYR5zA4rlKgodiOYzIbvwe+XY9qad+CVm25iQ//47 ueTcAHL4WBgzJh1/wOSrS1+RQO2gE82JTUBmc1tBmYl5n1KMxnTFqyEeN uIKmD+65UeKSQNDIH7yrp3+6zhuHmerZRQR15B/wdcfrs88u35w/JmKeJ vXaLmUiu47PDKfajjyEfGKyX8dradH611OvRvi+sV6wR9W397gAPLu5bn wS+a0tbiMjqcefMZZwNJ9ekGPUTz+oIWSgHKTSKPqp0ZNU+5/mD0xqDk5 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="335517345" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="335517345" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 20:13:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="818318763" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga006.fm.intel.com with ESMTP; 19 May 2022 20:13:24 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id DD786109; Fri, 20 May 2022 06:13:24 +0300 (EEST) From: "Kirill A. Shutemov" To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org Cc: ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, sathyanarayanan.kuppuswamy@linux.intel.com, seanjc@google.com, thomas.lendacky@amd.com, x86@kernel.org, "Kirill A. Shutemov" Subject: [PATCHv2 0/3] Fix for load_unaligned_zeropad() in TDX guest Date: Fri, 20 May 2022 06:13:13 +0300 Message-Id: <20220520031316.47722-1-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, 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 An updated version of the load_unaligned_zeropad() fix. v2: - Clarify RIP adjustments during #VE handling; - Fix early #VE handling; - Fix comment and commit message; Kirill A. Shutemov (3): x86/tdx: Fix early #VE handling x86/tdx: Clarify RIP adjustments in #VE handler x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page arch/x86/coco/tdx/tdx.c | 166 +++++++++++++++++++++++++++------------- 1 file changed, 113 insertions(+), 53 deletions(-) -- 2.35.1