Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp56647imu; Tue, 22 Jan 2019 13:45:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7LOdnqVDv+CEfsSPSyRJ1ij5KW3H6JHmxjCUfKBLJiQHz6wmUk+B8sfcEjQh0ymbiA8Bcv X-Received: by 2002:a17:902:7614:: with SMTP id k20mr36380980pll.285.1548193524069; Tue, 22 Jan 2019 13:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548193524; cv=none; d=google.com; s=arc-20160816; b=i87iZQOMl5N3mwg51LHKKudOBfFYDgTVyTUCTeRho/bJ6Yv+N9mhL7dr7385/sKVQH bnl+3YirgnklBWwKhSjh5UOoROIFi8MV27GViK8vHFd9wW84/i6eHiuGcHnUbFDiPzqx 2Q8aQbsIDJOe/yYXzBwpbBNnItHcBvmVowSZjAteKWSoaPmhDtCevuKU9Iy7APIyCJ2N 6RJrz02pRlAFXAZSATi7p3QZmxm9V5blraUuFxWIxB7GKsIKH5tIIZQ9q//WJ1EmnxV6 H4KkhqzhZZMpk6HVxeTTp7LAgXsvbn09kfkSad8uiJzFW7+IOGJcyVyOljZZGiibqkl3 auqg== 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=mmux4+WstKbAQ1L3Vym71gu0NwYhKjSmRheC+c9g2Jo=; b=ObPWCRvb2vKtTRVP0i0Esb4TETAvQmFzhNduUflEfeodFQyihB9zbY5Rr+saRXmqja TXO50RH0RBymaSF59NlRgTKXTA6+6MXOBRs4kwXGb3SjqD6LP0inWuTQpn/3QnQAfw9U C0PpYpQ7tIgX5oruhMZO+WVoz7yrwmnexuOXoUkmh2rkK4Z2Vu08txnOxOXl4DNA1P0m SFiOvYkG+4eaTXXWgeGJtQCS9VueGpc+pnCBLD80nWRTcuxJ7QCnOrDdz1PZRUVFNC8d kfUE50M2IkFK0iljrRiZ2o6ZbrWJO5Ye7j3whle2iRKFjukrLTPPBmpFOTwbLNvMCq0a mjgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=f6Ao5Flw; 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 i129si17891282pfb.32.2019.01.22.13.45.07; Tue, 22 Jan 2019 13:45:24 -0800 (PST) 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=f6Ao5Flw; 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 S1726741AbfAVVno (ORCPT + 99 others); Tue, 22 Jan 2019 16:43:44 -0500 Received: from mail-eopbgr740084.outbound.protection.outlook.com ([40.107.74.84]:52858 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726225AbfAVVnn (ORCPT ); Tue, 22 Jan 2019 16:43:43 -0500 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=mmux4+WstKbAQ1L3Vym71gu0NwYhKjSmRheC+c9g2Jo=; b=f6Ao5Flw+fkeV1JM25KHN4xvnudL9m/EVf1lcfW4VPXWRnVQkmb83+nN4s81peqPBcUdTl1JBi1+ozq1Gqtl+Y4YGi8g1lwziC1LIGDf2vj5891sD49sVrXgd9T2TgyyOX1HlymeEnnIHYtAPnGMJhSNqNLhjSGFW+iawmEJhdc= Received: from MN2PR12MB3631.namprd12.prod.outlook.com (20.178.243.19) by MN2PR12MB2861.namprd12.prod.outlook.com (20.179.80.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Tue, 22 Jan 2019 21:43:40 +0000 Received: from MN2PR12MB3631.namprd12.prod.outlook.com ([fe80::a861:43c0:476d:e044]) by MN2PR12MB3631.namprd12.prod.outlook.com ([fe80::a861:43c0:476d:e044%5]) with mapi id 15.20.1537.031; Tue, 22 Jan 2019 21:43:40 +0000 From: "Lendacky, Thomas" To: Thiago Jung Bauermann , "x86@kernel.org" CC: "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Ram Pai Subject: Re: [PATCH 2/2] x86/kvmclock: set_memory_decrypted() takes number of pages Thread-Topic: [PATCH 2/2] x86/kvmclock: set_memory_decrypted() takes number of pages Thread-Index: AQHUspgVfIwXb4OeBkOAdFm1kvco6qW70d+A Date: Tue, 22 Jan 2019 21:43:39 +0000 Message-ID: References: <20190122211758.8317-1-bauerman@linux.ibm.com> <20190122211758.8317-2-bauerman@linux.ibm.com> In-Reply-To: <20190122211758.8317-2-bauerman@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0013.prod.exchangelabs.com (2603:10b6:804:2::23) To MN2PR12MB3631.namprd12.prod.outlook.com (2603:10b6:208:cc::19) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MN2PR12MB2861;20:W8KyHgRFdMr8mYr3VcR6+ojoSIk4feE9mp97JOI8kKUxNvPYjOZCFbrhGoDwlw88MHa3rAkM7gE2guTtwcg3fMnlgamyQGe10c5nnd7wT3AHla0sDgVKDT4HOYw9iZq5lqgt8dLjyOlWAXDyXGAo7W6pBbpNN61k0IE5rbt/x7fsq+VLEqEJfDNCSJKXIfHlBJAp07wsAFNMXrKhYIeihD31JPc2fo04r7fmccLQfEIG2v8EVNC87aZ3RWAVlr7b x-ms-office365-filtering-correlation-id: ddf9ca46-0078-4e91-1fd0-08d680b2abf1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:MN2PR12MB2861; x-ms-traffictypediagnostic: MN2PR12MB2861: x-microsoft-antispam-prvs: x-forefront-prvs: 0925081676 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(376002)(346002)(39860400002)(366004)(189003)(199004)(6506007)(6346003)(386003)(102836004)(6246003)(31686004)(53546011)(2906002)(105586002)(8936002)(4326008)(6436002)(26005)(106356001)(25786009)(186003)(66066001)(7736002)(305945005)(36756003)(6486002)(97736004)(6512007)(31696002)(86362001)(81156014)(81166006)(2501003)(229853002)(256004)(14444005)(8676002)(14454004)(478600001)(476003)(11346002)(2616005)(7416002)(486006)(68736007)(99286004)(53936002)(71200400001)(3846002)(6116002)(71190400001)(52116002)(446003)(316002)(76176011)(72206003)(110136005)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR12MB2861;H:MN2PR12MB3631.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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RSB4SC1tlK3hv3WiPfgb3eqHU3Z7/Me8rbcZ6dimS5Ivwg0SL8QhltWlUCO9klUtqNIah+s0TNH9g0g7Rgu/Mj0Z9j7hg0lKJxxY4RZfohOxRHd+7VrfrNcyaSwj337YdSAtsCmOknoUmP/NuAO9kq+4pNaS7WJ5+TPUne1D1kMuABGvKN7BaH2YN65r6R4rGL/SyOyG1XI//2h4srdXL/7UhZvrH/hFVuJLTi6+77VxpSSK1kE5CorDEiDjcoZFyHwN2oNGepvuYcieDbVN8xwCUZb97yso72oTojyTlRuKhTKxZVyjIcm9U40TQz6if/SOgZ2EQIQs1tnaSlko8uUj33nJfU7tRUEVdSlCZnJfb094hZqnEIVT35UaPOF2g9T+Jp7llKN7D3a9E1CvTxvepCtkCDnGGkQvnV5XBYw= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddf9ca46-0078-4e91-1fd0-08d680b2abf1 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2019 21:43:38.7257 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2861 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMS8yMi8xOSAzOjE3IFBNLCBUaGlhZ28gSnVuZyBCYXVlcm1hbm4gd3JvdGU6DQo+IEZyb206 IFJhbSBQYWkgPGxpbnV4cmFtQHVzLmlibS5jb20+DQo+IA0KPiBzZXRfbWVtb3J5X2RlY3J5cHRl ZCgpIGV4cGVjdHMgdGhlIG51bWJlciBvZiBQQUdFX1NJWkUgcGFnZXMgdG8gZGV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