Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp898084ybe; Wed, 11 Sep 2019 06:29:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZw4XfX4otjogNiMk5R4AsFUNwzVc0hK4cy7qWyvdK0IlopOlsZTMHNNbhnTWC4D6Iahk1 X-Received: by 2002:a50:8a9a:: with SMTP id j26mr36628949edj.251.1568208563016; Wed, 11 Sep 2019 06:29:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568208563; cv=pass; d=google.com; s=arc-20160816; b=Aza2bgHAStUElE9zTSleVpV3KLG5It3k18ZkFqP+ozkfuHdNJ03U8usMDiX0l4Vtz2 s8rzmbNLOqdmkZ9J3qWjRLo3MAIQTcZQg5g4AQMM2pcTl1JpT2JqZRL8xjoRnIZHJkcl weDqYW3afqKNed7pM85pqLaDBCU2C1HSYBjT5wk2PsphJyfod4023/5TFmkV6QgJvGj/ MLKS3MhzOZtidryKR126khlitmYmMBCCwmGLGpjJry3FveiJfkoqmZklM8pAx8uEdHKa S89DpsRgRz+ZtCFckxd3F/JuKS0m71uCx7mftg7PJv9t5Bxigpotjm4dFVmdQegK061C 22DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=m/79ZNswUC+i2Ww219YXdMTWshcX9YRU+nuVkz/h5Ug=; b=i2ttePhsK5sXwQkn5JaDiaLHTTDuA4Rc2UokNu0+tD6wR15pmA8WwGjy4dNI8c/kKp 1A3wOM4iM0W3jg5/uNfsEsLi+0jDyhKeu3LNwlnu5Y646iAK6xq7Yzfns8H5O+x0ZfY3 emrqIa2A/a6HRHMS9ta3Z92WjSLlC090eABauikunXo+mkPgRA2c14szMGb8feDoHNQ7 lvXJlndW98PslWR4VVK8DKoxVti9aL7rppajarwCOOSmtAVAijyltU2ROM8db9jkTOld tpA7PeUsl9s8ToGd3bnwoInkcE0JbMEL1RBY/GEPFEUsiKZ3JqOFzDCl/BwBxE6stYat ZyvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=E0qMzgWd; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si1068865ejj.127.2019.09.11.06.28.59; Wed, 11 Sep 2019 06:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=E0qMzgWd; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbfIKN1N (ORCPT + 99 others); Wed, 11 Sep 2019 09:27:13 -0400 Received: from mail-eopbgr820088.outbound.protection.outlook.com ([40.107.82.88]:31996 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726954AbfIKN1N (ORCPT ); Wed, 11 Sep 2019 09:27:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P5JWj2oYiNrAY9yqazHLAQtzaRR/NifOIVhj2nGLMXq9Pb4olhHORW0/oVWCiJXSu8omhl1z7P5MjvdJnIKno+7N+J0yhgwASuPh6VYykl39jbNDNDJRoXbcblMrkhOXGHZ/mj93V1T4+F4iyrNLos/+BYZMxFdJ67OLwPByQS0BmrjKFb/T5TxLwT5qcVOgubweSC3HsWo/LxsJWGLENk7SlndwfPNkd941YycPtys5SxdY0t1ffKnVoScrz1q9GaluVNY5Fyowvy4iw00GGInJN9cnnk0yE5IxYz6TfLfnBvT0SdhqRVKkJOE1CCT582Ebg374cR3IgEv6GUwL5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m/79ZNswUC+i2Ww219YXdMTWshcX9YRU+nuVkz/h5Ug=; b=ZxruvTJwlc1mApyVXUbNxItca1D/6iiH/KpkKSzCji1zJRy65ffzhepwRgDbKbhdh97TsI2KuLusBhEF/DrgBIiEorOLZztCGJD7vGf20vqkt6SWEQ21jVt7tcsa9pCqBRMzvFeSPgWPXGfZenu7JsWrJLcfTjNwgFAtETfiTJu8bVJ4lmKXAEdGD8RilOwRoKyKkhh3cfJTegXHQPYcje077H+WS+72agZbBXbsMpw0opcZ6HqhCe0AlPwHVa8Du96OPaTHI4v9FHERd8Qn3Zyg+ZEKn6O38THrVwDIUfuJT3Xc/AKVpid2gTRc5RiCxos8wc4RulBmNu/nh02KOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m/79ZNswUC+i2Ww219YXdMTWshcX9YRU+nuVkz/h5Ug=; b=E0qMzgWdYvD1JrbhAvsZa4Q/cWdCLOPif0zzGjJvpGmV3iq/Uft95ihS8+71LxUiblcpzub3ab/KDPgsIU2p+C3GPaeL/RMizy3Jp1QOLNUJ2d0953tCNmoWklY3xq+FPBrW1IwG495VPmG9pJGOpz/h2Wgvcw7nRWcd0hJhjhA= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3177.namprd12.prod.outlook.com (20.179.104.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.18; Wed, 11 Sep 2019 13:27:08 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::585:2d27:6e06:f9b0]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::585:2d27:6e06:f9b0%7]) with mapi id 15.20.2241.021; Wed, 11 Sep 2019 13:27:08 +0000 From: "Lendacky, Thomas" To: =?utf-8?B?VGhvbWFzIEhlbGxzdHLDtm0gKFZNd2FyZSk=?= , "linux-kernel@vger.kernel.org" CC: "pv-drivers@vmware.com" , "linux-graphics-maintainer@vmware.com" , "x86@kernel.org" , Thomas Hellstrom , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Christoph Hellwig , "Koenig, Christian" , Marek Szyprowski Subject: Re: [PATCH v2 1/2] x86: Don't let pgprot_modify() change the page encryption bit Thread-Topic: [PATCH v2 1/2] x86: Don't let pgprot_modify() change the page encryption bit Thread-Index: AQHVaJ4hNPy1jEi3+E2hfyLI/LSoQ6cmd/kA Date: Wed, 11 Sep 2019 13:27:08 +0000 Message-ID: References: <20190911124022.22423-1-thomas_os@shipmail.org> <20190911124022.22423-2-thomas_os@shipmail.org> In-Reply-To: <20190911124022.22423-2-thomas_os@shipmail.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN1PR12CA0088.namprd12.prod.outlook.com (2603:10b6:802:21::23) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8955f750-3dd0-45f5-bc81-08d736bbbeb9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3177; x-ms-traffictypediagnostic: DM6PR12MB3177: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:651; x-forefront-prvs: 0157DEB61B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(39860400002)(346002)(366004)(136003)(189003)(199004)(2501003)(256004)(31696002)(8936002)(305945005)(71190400001)(76176011)(71200400001)(52116002)(66446008)(66556008)(64756008)(66946007)(3846002)(6116002)(86362001)(14454004)(478600001)(99286004)(7416002)(53936002)(14444005)(5660300002)(7736002)(2906002)(81166006)(81156014)(6512007)(66574012)(66476007)(8676002)(66066001)(6486002)(31686004)(6436002)(229853002)(36756003)(486006)(6246003)(186003)(26005)(2616005)(476003)(446003)(11346002)(6506007)(110136005)(53546011)(102836004)(25786009)(4326008)(54906003)(316002)(386003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3177;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +/Y2A2LNXN70Q9XP4pDybTHDnwIvkqCPXaSUxPqIewZiGJ4UwVcIurejf48B7Q0sXO0oETRgVZrRoBtIp/4zl7Gl0K5IHCAwRLZPT6WwL8yrfq4//9dzBMXyNfE/1/o0Axc/KmGgfn6lBAkBBY1humBqUEtxv69GpJHbe+RBM70TAjRU8TFld/UQprpkaxABiwjczkBXBHo1xvWfDCKbe5QAQSc7GgA7zoPw2HAwlUAoGsHA3Ft0ZrclRED2yV1NWAiHmeMbNhz+SR2x2JBHPbBn0vj41ocr83bcmXRZXh9xmlUN2EMHR4yDkOnhKBB5mCVBaovOqtpgCaalXnGqc2ZcuIEenMySEU3565k6CNjDmBjPF+syIUnVOSPe6MMVSz1UGiPHeSUAZwsas0lkp/58RW4CSVncj6BEsQ+UsZs= Content-Type: text/plain; charset="utf-8" Content-ID: <2790220250E4AB43A31CE0E74F13B9F9@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8955f750-3dd0-45f5-bc81-08d736bbbeb9 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 13:27:08.5760 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lEaXuOBOdbCnwE5flbB6uyuaQqEGl87YGMtnppySt/b00ATIbwiDapF8ezSGtJBvJdIUUy1qo2X1ZvO6A3S+WQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3177 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gOS8xMS8xOSA3OjQwIEFNLCBUaG9tYXMgSGVsbHN0csO2bSAoVk13YXJlKSB3cm90ZToNCj4g RnJvbTogVGhvbWFzIEhlbGxzdHJvbSA8dGhlbGxzdHJvbUB2bXdhcmUuY29tPg0KPiANCj4gV2hl biBTRVYgb3IgU01FIGlzIGVuYWJsZWQgYW5kIGF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