Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp578844yba; Thu, 18 Apr 2019 06:18:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoXlLMMtoeQJmX/ADOcpBmFZxaVa/27WMs1+D4X+/n5ezHLthcKU8Tu00BxKsJi45TYhNq X-Received: by 2002:a17:902:9881:: with SMTP id s1mr91240578plp.99.1555593527855; Thu, 18 Apr 2019 06:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555593527; cv=none; d=google.com; s=arc-20160816; b=qnjnNw0sOru4pyLtU7WQSlWYkyFFMdICkGx4aE0Dzn8RTTGRp1+hw2yQHunmD1+gHw 2opaU6HU2j2E+pK1Y8rhNY5NR3oJR3l7XLjJ59lx/ZLqcWiX8NWh0WpIC98awIs2r9N6 txMOyA0/4EleZfhBZ7Cp3IEe1qc97yhQHn1pSzM/lsquBQczqAsWU8DQrHeVpIrZf97g jD7G9c3bZZxuc7cz2c7w6ERPNoA9AM/I7a7x9ILvtsh2h8pBfq6XnY+v8qUb9iThqx/8 TFhohTQveeTWkDbfAVrRbWTs03sh0ik9qeyYOvIhBWugIDH40YaOJeAgRgxZcHPWbxbK n4pQ== ARC-Message-Signature: i=1; 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=U47EEBzXxGnK2uAeD94qqKuR6x0HjQz0xg4QNMm4Joo=; b=XD+52ogKw6ClHDiwJUgO1QOkBgTGvDU9BoG2HJbuE6ypcoGUKWgZQBBp9dwCj3+uZH KjMewvaEHCHNXLlJODUQ/lItGNYOG8jOXvcvUolQFo6EE0bL8aTcJfkZgQhICKKkGOWv DsOlacxjpZkhrDgUwex099rQWeQvMcH/4tykPPxMTc7lWOAdPycIiMUlRUlHJbV506Vj tNidPlfxoJyikTEa55PjKtA0YmT+3sIIyLy4IAjfIO7ZU0fgZZP1fD6nmW/L3aHpu31V i9T7+y+9PN1OIqpXuDS558BsGU26wKORacrH1+D5mjqJJ1/DKHMMC9cFCbxejLv5ckX5 tBOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=XZKetLwt; 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 f9si1896528pgm.479.2019.04.18.06.18.31; Thu, 18 Apr 2019 06:18:47 -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=selector1-amd-com header.b=XZKetLwt; 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 S2389024AbfDRNRT (ORCPT + 99 others); Thu, 18 Apr 2019 09:17:19 -0400 Received: from mail-eopbgr760079.outbound.protection.outlook.com ([40.107.76.79]:38229 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389008AbfDRNRT (ORCPT ); Thu, 18 Apr 2019 09:17:19 -0400 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:X-MS-Exchange-SenderADCheck; bh=U47EEBzXxGnK2uAeD94qqKuR6x0HjQz0xg4QNMm4Joo=; b=XZKetLwttPfP9YqKGjguI/+1C8frK3FLsGEheRJbqirEfhWuhqpxl+1xl4WWRvib6MLfsQuXsyQ8+hjfSZcK7aA6vLJ7PKKziJIUVCgdhJ/NtBOiD+AToMnP8X5K/80SEwoPdttYIn5f33Gzr3ORvy2FT7waDr34bcUimeqLDUo= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2697.namprd12.prod.outlook.com (20.176.116.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 13:17:03 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::c96d:c1dd:fd7a:ffd6]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::c96d:c1dd:fd7a:ffd6%4]) with mapi id 15.20.1813.011; Thu, 18 Apr 2019 13:17:03 +0000 From: "Lendacky, Thomas" To: Borislav Petkov , lijiang CC: "linux-kernel@vger.kernel.org" , "kexec@lists.infradead.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "akpm@linux-foundation.org" , "dave.hansen@linux.intel.com" , "luto@kernel.org" , "peterz@infradead.org" , "x86@kernel.org" , "hpa@zytor.com" , "dyoung@redhat.com" , "bhe@redhat.com" Subject: Re: [PATCH 1/2 RESEND v10] x86/mm, resource: add a new I/O resource descriptor 'IORES_DESC_RESERVED' Thread-Topic: [PATCH 1/2 RESEND v10] x86/mm, resource: add a new I/O resource descriptor 'IORES_DESC_RESERVED' Thread-Index: AQHU5ix9aieHaoOfIE+gtf2DydRsNqYomnkAgAAw8wCAAAuSAIAUaGkAgAA3wYCAAo1MgIAByqAAgAA2lQA= Date: Thu, 18 Apr 2019 13:17:03 +0000 Message-ID: References: <20190329123914.20939-1-lijiang@redhat.com> <20190329123914.20939-2-lijiang@redhat.com> <20190402090652.GD6826@zn.tnic> <20190402124328.GG6826@zn.tnic> <384ba880-1b53-8013-8be8-66f294c27100@redhat.com> <20190415154155.GH29317@zn.tnic> <60d67667-c9c4-29bd-0a8a-d3ae13022d87@redhat.com> <20190418100138.GD27160@zn.tnic> In-Reply-To: <20190418100138.GD27160@zn.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0201CA0053.namprd02.prod.outlook.com (2603:10b6:803:20::15) 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.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 17f57348-86bd-4401-c31d-08d6c40025b9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DM6PR12MB2697; x-ms-traffictypediagnostic: DM6PR12MB2697: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(366004)(346002)(376002)(39860400002)(189003)(199004)(3846002)(6246003)(54906003)(14454004)(476003)(110136005)(72206003)(186003)(305945005)(31686004)(25786009)(316002)(93886005)(256004)(229853002)(36756003)(5660300002)(2616005)(68736007)(53546011)(478600001)(102836004)(6512007)(386003)(6506007)(86362001)(97736004)(486006)(11346002)(26005)(31696002)(99286004)(4326008)(71190400001)(81156014)(76176011)(53936002)(446003)(7416002)(2906002)(52116002)(6486002)(8676002)(81166006)(6436002)(7736002)(71200400001)(66066001)(8936002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2697;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: RJ5GaxoT4G+ufhOB3HwI+iL5MBWNHTcP0Knw1fuH+MMIvmAbNhuPxv2ZxYlHQtKNRDgUlhzPQ+S1WR6oT93IcbTZAl3SniiYhfjfthX/0GwKjlHXPMx8NpdaCwAJlhDzgrdMH/ZJSa8rRNWtvw2esyHLm3I2yeIoAkjzgmKRHKEL6tAK+8qPwyteorsE+eWTFrEPYkAVH5QNK70uN+iP/TCNIUZsKrYq5CmjBWgH8oZcDr4lRZ2Aca3VGsoniEkn4HN+VuOdpVzyvwBIjbH215lV8HdSBcUVvJ4G2ELnU9XaqzimDjmlnQA+DFckTauuOVJICpMHiIVbRQF+ZNr+usghzbQXauZrJz/uS9eEFvTjnsJGLc3s+pFZsqEaMt1UIspdSzT45Orz2hPqMd1cdsaOe+XY9ow4Evxq60BAyNI= Content-Type: text/plain; charset="utf-8" Content-ID: <35B83771FD8D354F881AB7985764771E@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17f57348-86bd-4401-c31d-08d6c40025b9 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 13:17:03.4100 (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-Transport-CrossTenantHeadersStamped: DM6PR12MB2697 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNC8xOC8xOSA1OjAxIEFNLCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+IE9uIFdlZCwgQXBy IDE3LCAyMDE5IGF0IDAyOjQwOjA5UE0gKzA4MDAsIGxpamlhbmcgd3JvdGU6DQo+PiBCYXNlZCBv biB0aGUgYWJvdmUgZGVzY3JpcHRpb24sIGkgbWFkZSBhIGRyYWZ0IHBhdGNoLCBwbGVhc2UgcmVm ZXIg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