From patchwork Tue Jun 27 15:07:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812363 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C877C60351 for ; Tue, 27 Jun 2017 15:10:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD0DD286D1 for ; Tue, 27 Jun 2017 15:10:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB3D7286D4; Tue, 27 Jun 2017 15:10:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34F8328591 for ; Tue, 27 Jun 2017 15:10:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs5n-0007JH-Og; Tue, 27 Jun 2017 15:07:51 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs5m-0007Iz-Px for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:07:50 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id C2/19-03920-6C472595; Tue, 27 Jun 2017 15:07:50 +0000 X-Brightmail-Tracker: H4sIAAAA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Msg-Ref: server-2.tower-27.messagelabs.com!1498576067!50154949!1 X-Originating-IP: [104.47.41.82] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 52487 invoked from network); 27 Jun 2017 15:07:48 -0000 Received: from mail-dm3nam03on0082.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.82) by server-2.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:07:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ubSlu2NxDTIrqxvJaGHrfyPNFiwiO5QRKlpWrnivXmA=; b=os4Xn2gFclBnV/Po571ZAiRdEr/f3GPjgo+vQQfOgFWYqVo9QEStmEVj+oQKQTvFEsioHlQhpTa5lBInsz549E6D+Nhh+5tU4m3K4+e6nlYRW6SmgAmoD4+8CMQrUi4avdXhYdndDC5De5GgeAs+4GDtApnLHU5a3bp1WJasbdo= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 15:07:43 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Tue, 27 Jun 2017 10:07:40 -0500 Message-ID: <20170627150740.17428.95661.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627150718.17428.81813.stgit@tlendack-t1.amdoffice.net> References: <20170627150718.17428.81813.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0056.namprd22.prod.outlook.com (10.171.142.18) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6462bca6-68d6-42de-9f1b-08d4bd6e44dd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 3:6n/Vp1oiamafRWerOlROR0NGvcRtL0mGOtDb4YMmvuwbHOj/FFGew3bPlaD7ETRKAuMPHJX4fRlS1y5D0g39bTLvPk/NXuAPHxmmhm1qv5hKXAg+sDdWdzK5rMQ/ERYiRhDdc/+7T8DXQtUhouCQU+qeMS7jbUPNs6bwDduerEwkszvAmR6AVIJzuOkK4CtKELoohfSJ9SsB1ucHOZP3591Cnrki0lx2YMAMejlks75oQ9+irWd1B4IWpsunSFx7Iy8xzDt4nAMe4XOvwy3OSBuyden1uWEpMPwgxIV/eF03qHFWDXnG21B/MoxOL2m35DuiLa/xP6deJaj1qbsFbzQwtnb6KdrRGZRi9eOH+VC2FIjH5ChVFrNG9CacRrQ2fdoVikMRkaZu45/EP1tLMu1e4ikds8TXf6KfzK16yb9rH9Y7HgfEqgJVTYf9K0OKmr1NfB550XxQR3/sArj1kAbfxraaFGrHrbxKbzQgwcCBS4EbVc0ZdfWxAfQqUlwl6Dm6JIsWtWzN3kvsRujEKJnBzDSXAwZvug3rrYdQoqRvmH2mkH5ynRg7VE5upiQMhuzYH602EpoVcqYSmHVyY4cvOluqOhOvbrrUAkjuhbsOgNk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OHzolSVpQ8MvKjckDGKu5wYdsJPlqDqDRjwX9b3w3mlCMAuTJhjNDfyeksRF2GGMZtBm6F94EFMIEKGQNOP39hxR1AbDtpokYKyiofH1h6yKo/pEXGeNPHb9ED2ptxF+gRux4gIYFn66tTNmh6CnjAIdILswQIVm4wA304MLvj7lsvWczG6kpJ7HTkEMq9vBWR9ITNPgOpGXFMRGLrmzFXRQ5wx26Me0P5BT3A1GTjLMREV+yPh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1141; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQxOzQ6b0swYmM1Mk5xejlYRjRzQlhJNnhmU01aZzNT?= =?utf-8?B?NXJUd2kxMDEzU3VrZTBxVUsvdTcrNWFXRnZpelBQUk1QT2VMdmpEY2REc3Fx?= =?utf-8?B?R1Rpam9URHJyVmxSdXAwUTF4QmNzWWt1aTVqalIyakdSaFRNYmVRWklxWlp6?= =?utf-8?B?RE8yQkpvWEZoREVXUWViUUpnQkhBSWFpeDh1VXJoTmpkMDZPaE1SekhrYWFY?= =?utf-8?B?RmxEdzNVVzAzVWNtRk1ZUEswY2U0ZlVoTWxTd0xjOVNXK3kyUjNPbit1SzR0?= =?utf-8?B?VT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EWm5QV2tkdkFvTEYvM1NaQ3NnN3VxeUxVYVhyTk9LdDRzd1BEOERt?= =?utf-8?B?clB6NlRyaGx3U0U2K0xaOEpPRlFENFVGSHBVbXpqOUVuSHhvRkd0RmZNNGhR?= =?utf-8?B?dzFvd25PbXNsL0ZsNldVT3JHNHRsRUdaQ0grMUo4SjhnMEtKYXErVEwzb0NV?= =?utf-8?B?YS9CL0dPanFNdllMMEtpUkhLNkpaWWtSeGlIbnU1Q3A5bVZpMnRqRUtuR2lF?= =?utf-8?B?cndQNWEveXpSSnJna2J4RVFkWEhuYjBTZGpOcVROZVRVZ3NmbnB0OGpzNzhR?= =?utf-8?B?QkZyVHUzZDlFSlUrNEYzbVZPaU9TaXZWTFFpUk5ES2lCRjdyYmU3Q0l5SEFs?= =?utf-8?B?L2JuSHN0VG13TjdvNlEyY3FRUWdabWRaTTlZUnRxT0NUYlJ2TGdiVWJjcE9l?= =?utf-8?B?b0pqZFBiSmxsc0R5eWx6Z21YSlVBL05NYnp2RmRmSURXWGtjMlNKSFVRSWV1?= =?utf-8?Q?6IVzccGc9yDA8l1JQQbxa4M4jnkxZpU8Yxtho0?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39450400003)(39400400002)(39840400002)(54906002)(9686003)(2950100002)(6116002)(55016002)(83506001)(110136004)(38730400002)(2906002)(54356999)(76176999)(23676002)(53936002)(8676002)(230700001)(4001350100001)(478600001)(25786009)(50986999)(3846002)(4326008)(1076002)(189998001)(81166006)(33646002)(7736002)(103116003)(42186005)(66066001)(47776003)(50466002)(72206003)(53416004)(97746001)(5660300001)(305945005)(86362001)(7416002)(7406005)(6506006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1141; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUj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YjiOVLZqopNIAPs36mNMRX81Rj2+hIE/pm7lWLIugTS4dM8soyUFA852aRNokaihv+r1u1tVrL6wcRIBdVYs7WM0J0GQW7Wj3PdzO9t4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 7:j+hFY/L/LhrwxwzOpdvVIR0X/HAynQJ34rTr83QIYpziL5bQjnhxB4072Mp3JVc6/2wjDFHTMsXGnuSe+G8IiRRIzHLCyZ03nIzCmXjsnfjmDu9Pn0llGaFFAOw4gJ78uEndd+ZQaCqAlYN+cy0ylu/kYGfoRLzUJD99XOeDULZoAY5mV5PUhCCt26rEcLRgxECcYoqBhNnq6LnbcCk8GsT1DLqOLFK+9JKgBG31KAlX+8LFgat5b5dvUELS9UAlXYtr3b2N/TTlKxDZC2S5LKCjB88Y+5EV2IzI5Gke1oSiOnlJ0X5CLFm2WQul2sIKdncPZFiwPQAZjbhOqyzMIBKUKZnZlogcHkQSd8uM7jiRWXPAfLWp04SDJ4OdYso0eu7g2UYoibakEux5F0DfNKL5PaBZF1kGBSXJdE1Gqo5RzTqUgTtpagnjcuaaR1NCHXNxhRgz7vnqJ9xm6QO1NvOZnshN2l03qrHR5PVI5wy4fmkxgoMSRDgu52wtv5cVh4LaallPItGpKbx42hF4Xnz4XqDmYto4aiPftUsdoQOL/LOdXa0khPve/GjycaItEeNNjEP93Fdox+fLmsoAuoggLE8IxUlskqCWrfs4Pbp/IqsIjVhV5zowNauNY/kfKxenlqllWHkO+cWesd9G6XqXyDXrGbY0CMXVLd/PGYucDdZMeUJFsTivj12M6WpD5aNWll9xRQGV6Zn4ud1AERVXrtvUV9tpZcKSfPlNW+d/dtBw4K6+iaCEcFLam3j+y6Nt39EPyVTUZchGrJm2tuxBtVHiHxSWqUFo1HxvYjk= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:oKPhozkM+EOeAz+EH2lnaWyKvkhD1VYtWZej6c+iC0zJ9CbVxbWUs7Kd0tSsUxuKh9lSTgM9OORpj5hlBAV/Gh2ytV0vJUxiF72i5r+9pHzhqP1714ea8RUDQCzl7E1IyL8ZEDnAI60ZguNuUaJ6sUg5Cqu80veUK5w6You9iuVNSSPLK/XFnCUElp3eFH3S0tryfNLDMhDVEnDrKo5ks9Zwr63BsmHVdYAmcAd3rzsX5Y38wd0brFOdztbUOGMN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:07:43.7853 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1141 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v8 RESEND 02/38] x86/mm/pat: Set write-protect cache mode for full PAT support X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP For processors that support PAT, set the write-protect cache mode (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). Acked-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/mm/pat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 9b78685..6753d9c 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c @@ -295,7 +295,7 @@ static void init_cache_modes(void) * pat_init - Initialize PAT MSR and PAT table * * This function initializes PAT MSR and PAT table with an OS-defined value - * to enable additional cache attributes, WC and WT. + * to enable additional cache attributes, WC, WT and WP. * * This function must be called on all CPUs using the specific sequence of * operations defined in Intel SDM. mtrr_rendezvous_handler() provides this @@ -356,7 +356,7 @@ void pat_init(void) * 010 2 UC-: _PAGE_CACHE_MODE_UC_MINUS * 011 3 UC : _PAGE_CACHE_MODE_UC * 100 4 WB : Reserved - * 101 5 WC : Reserved + * 101 5 WP : _PAGE_CACHE_MODE_WP * 110 6 UC-: Reserved * 111 7 WT : _PAGE_CACHE_MODE_WT * @@ -364,7 +364,7 @@ void pat_init(void) * corresponding types in the presence of PAT errata. */ pat = PAT(0, WB) | PAT(1, WC) | PAT(2, UC_MINUS) | PAT(3, UC) | - PAT(4, WB) | PAT(5, WC) | PAT(6, UC_MINUS) | PAT(7, WT); + PAT(4, WB) | PAT(5, WP) | PAT(6, UC_MINUS) | PAT(7, WT); } if (!boot_cpu_done) {