From patchwork Mon Dec 5 08:04:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Gross X-Patchwork-Id: 2593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2121987wrr; Mon, 5 Dec 2022 00:08:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ifa4yKD2RCEXXdQmoVEevN4TuL2LEwbmQ3wrZA6TmvYLRktkYyUYzHPiEBNjbrlGKnYEH X-Received: by 2002:a17:906:f281:b0:7ae:3b9e:1d8a with SMTP id gu1-20020a170906f28100b007ae3b9e1d8amr65615367ejb.581.1670227712888; Mon, 05 Dec 2022 00:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670227712; cv=none; d=google.com; s=arc-20160816; b=uLPqldQqbBCUBC4cnFUwk+CrUMtyYWdXOx5RWVA5xSu4Xm6EISIDYgc/xmgu53UHtG bQIMlo6bTYOzJtsmflLuVO/X4mEJkTjBW+gbkB+pXqWRRE26+oc2AaZ89eBYOiYxocOJ BLkE9Xvm+fW8WV4NA0LRqy3LDezJu8A4yWoRPeZDgQW9N0KUuIqQSgljWcnfYGSYlP6a BJieEIxH2aVPL8j0nIuy0ifwWY/NLFiFyHXjF2YfZs2PZX1b+WkASVcsPxfEzY9tDctN L7Ix0R2dK6fL+fvV77Txs1iG/velS7tKDUz+0oJu37Dy5MCmJl1Hm4xoZ3JBsYjYYaXH peuw== 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=Nh84MA+lVhZ7z9Z8LG77iUxFcSy159whvB1ZvGTu3GY=; b=f2QXUHb1ehGxM2Iycw7Jc+q+w5HQrf54rZvcfkLkGn960dlLXRZ+kWjo2080eTia3/ ICEiDh3a2Wcp6kaahgeJjRCtIMtW4VxdbLG7PNUnSfEP3g5Tc4lvV7a16DpT410jHQPo GMAhMxg4jShbVhJz2xjCBOPH4xy9rj9Hl0Fcjm6uzmi+74gOtfpI3mkswJItA0fhWCb3 MzYz6YkgXbEP+zVApaX06z1i0uYkk3iUkZg56tN1UWNGs74zR/Xz1LVQdhp/Y5fpjkmm /CtRzJO7vfemeOgCIsbn37Iy/j030QUwY4NCs5Rf3naVR9qxVCwN3sDjajn6+lxrhzRS iv9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Jx65H9wZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy1-20020a170906fe0100b007940226fd21si9429273ejb.903.2022.12.05.00.08.08; Mon, 05 Dec 2022 00:08:32 -0800 (PST) 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=@suse.com header.s=susede1 header.b=Jx65H9wZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbiLEIFM (ORCPT + 99 others); Mon, 5 Dec 2022 03:05:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbiLEIEl (ORCPT ); Mon, 5 Dec 2022 03:04:41 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D3C315A0E for ; Mon, 5 Dec 2022 00:04:37 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 59CAA1FE3B; Mon, 5 Dec 2022 08:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1670227476; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Nh84MA+lVhZ7z9Z8LG77iUxFcSy159whvB1ZvGTu3GY=; b=Jx65H9wZh1k4AML23zrMZNqCXD99qyoaPitPkLev5jn9+WS6X8ubfhm3p56JkvoRzxovLV t3Fv9zXYw5nWD27k+xs2axBffuAsOBidg8IWg1cXH/Usnt9OjSJe1MGK6qCmDXQIb4WNh/ 7LIDU79nFZsgKJsuu+hVhATys5TxkJk= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id F21A61348F; Mon, 5 Dec 2022 08:04:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id H/y5OROmjWM4NAAAGKfGzw (envelope-from ); Mon, 05 Dec 2022 08:04:35 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: kirill@shutemov.name, Juergen Gross , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: [PATCH 0/2] x86: fixes for MTRR/PAT decoupling Date: Mon, 5 Dec 2022 09:04:31 +0100 Message-Id: <20221205080433.16643-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751360694411573696?= X-GMAIL-MSGID: =?utf-8?q?1751360694411573696?= Two small fixes for the decoupling of MTRR and PAT. Juergen Gross (2): x86/pat: fix TDX guest PAT initialization x86/mtrr: make message for disabled MTRRs more descriptive arch/x86/kernel/cpu/mtrr/mtrr.c | 4 +++- arch/x86/mm/pat/memtype.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-)