Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8899009ybi; Tue, 23 Jul 2019 17:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIQhy3O1tVj0UEVofrT41wsqfj7xWN5qqvEHtkYRHRB8t8YqICQ1BWQxziMXCr/IDte7BD X-Received: by 2002:a17:90a:e397:: with SMTP id b23mr83928734pjz.140.1563928764622; Tue, 23 Jul 2019 17:39:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563928764; cv=pass; d=google.com; s=arc-20160816; b=saytdWw0kS9hTOJIuor2WYOuPaRL/gjWSCGJux3SscNSNOY9TiENPXbkaMUpyfDs9i IIR1iHioVRo9YVsmLQ2xGLpC6TjnwRehg82Q89UR+wO3Ncf2PLShXTGP0zJjFKAvDiOc /8MK+iTYpqyweu/R7gcv4u4FVREMUAGIqTX6FgZI+BvCK/k7j4WBK2elJ/X0sVhUPtQk gFwYVaen/5SbmLxrv2dXi8/OC+n/C7APHRD0KppEfnZGPpVSRC7PDm8S9oDyvXIfiwjq UsxTgnTpvEbGwJRIDTGLopKUnejU8HQNSHEEF+zf8i+Fjvk8A2HXuXn9jFNHaOZLiGMm Z5mQ== 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=hSrqbzMXJD2r6Qrpy7hI285S+0TlyTgqSRtU1axnqUg=; b=J9QS1Ism6EyJ7u1bzNT+8t9IhQklbM04o7vMPOXBHYZzb9t6BPxGiOOrNNTs3gto4m 1sO/WZwu8bkwnyppVn+OqbYNBSZ+cp2XZKGQOph0nyufsgOy/xY59+3ZQ7MylWq9NMhw +dGVd8rhZDK8ONDijTNMbHiTK/El8Or1O1yYUiiq2lrdKjnPpvXv9bRFAOGsfl3Qf0Ep 7yJgOaOGKihnhF2IC3EKnoz5D1oelvhPpew7I531woEERJDaJE6Dpw+w5qmGAK6EikUX eJc6jYnJVqtrZkRV65UOQHs21wNN7fz5oAORR5UTaet7FHyreXopmdbnqzxWXzni5bxl WZmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=vdLIBCwB; 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 t70si17067303pgd.573.2019.07.23.17.39.08; Tue, 23 Jul 2019 17:39:24 -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-amdcloud-onmicrosoft-com header.b=vdLIBCwB; 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 S1731448AbfGWPb1 (ORCPT + 99 others); Tue, 23 Jul 2019 11:31:27 -0400 Received: from mail-eopbgr780080.outbound.protection.outlook.com ([40.107.78.80]:36813 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726276AbfGWPb0 (ORCPT ); Tue, 23 Jul 2019 11:31:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JmAox/pz+NoveCnF1/T7mKotaKmwRRjDdhvDqXGuiwrsrT1UXvnfGT0GuzBXkYnxxcOdwohYmRDn5trPFLpRQ4W0zKz/b2PuZfmUNLqDsdD01ik/d31Bda0HDhAxE3MHCGvuuJ5rACuFisWyi0tdrHbxix7Z5xT+jZ2+c+4ZGPXjOknbO+LXkXsElt/mnRonX3hW3+kiyZ4Van4vHHZO8ASyl2Q13njpK062vDz9y5/R3HSuM3FjajMm4P/GS4xhX16OIX45hxB0At3ug8JIMo7Xe77uLgXR5TNd6T0Fiv+5S16iYZGW8YVt25d3I2XL/zV0l+4ZMvPK8dzyTCud8A== 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=hSrqbzMXJD2r6Qrpy7hI285S+0TlyTgqSRtU1axnqUg=; b=D119CHsny6qdnXp5kM2Seu05LXeT2sj+d67vNuIVM0+0CbackNL54RcjuLttXJBfYlYhanGCior9sf/ytrLMbiqyE7fArJhHTIidL/1mto4lcZFYRTfWK1ddVzmgoQNKE1PjDPFL7V92UdB15o5q+r4/iJpiEyIYsXEKAJyhVJlbHhzYjzDpjDeFktKLsStQPUt/01q156v4wFHFtrXSFyScBYYV11kTobyGFF0oGbF8w645sKQhkOOD7zHRNnQ9R9BEqxdocrmrgVHF7iImgLgMsYsBsLiX6xysEOyZj3z0rZ8pt+tE8KNsrcL9aM/OYr5bThrvFiaZONuPH8qPrg== 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=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hSrqbzMXJD2r6Qrpy7hI285S+0TlyTgqSRtU1axnqUg=; b=vdLIBCwBnO5jxSUeC/nhKIlJ8Hj5xjyUHs0xFth9iEJYMa9e4Zhofg0pVsBGWTE65T7TK9ouGFQsMCp09oL0+dNHgw+SW/qPA8q5tesft8RPsfyg0/8MkHNfRRH6t4K0rbVWOnroLTt3Pvai9Om8DgzZK5c0eIdJidt7wVWdR8g= Received: from DM6PR12MB2682.namprd12.prod.outlook.com (20.176.118.13) by DM6PR12MB2699.namprd12.prod.outlook.com (20.176.116.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Tue, 23 Jul 2019 15:31:20 +0000 Received: from DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::7439:ea87:cc5d:71]) by DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::7439:ea87:cc5d:71%7]) with mapi id 15.20.2094.017; Tue, 23 Jul 2019 15:31:20 +0000 From: "Singh, Brijesh" To: Cfir Cohen , David Rientjes CC: "Singh, Brijesh" , "kvm@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Joerg Roedel , Borislav Petkov , "Lendacky, Thomas" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 08/11] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall Thread-Topic: [PATCH v3 08/11] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall Thread-Index: AQHVN1vkr0vUgqY4y0eLnE4RKbM1dKbVnyeAgAFTcICAAXYJAA== Date: Tue, 23 Jul 2019 15:31:20 +0000 Message-ID: <4a1b0181-1843-1f10-a45d-8087b35d5885@amd.com> References: <20190710201244.25195-1-brijesh.singh@amd.com> <20190710201244.25195-9-brijesh.singh@amd.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: DM5PR13CA0026.namprd13.prod.outlook.com (2603:10b6:3:7b::12) To DM6PR12MB2682.namprd12.prod.outlook.com (2603:10b6:5:42::13) authentication-results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d636bfbb-9cc6-4926-46d5-08d70f82cfd3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB2699; x-ms-traffictypediagnostic: DM6PR12MB2699: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0107098B6C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(136003)(366004)(346002)(39860400002)(199004)(189003)(36756003)(31696002)(6512007)(6246003)(8676002)(86362001)(64756008)(3846002)(66946007)(81166006)(53936002)(66556008)(11346002)(14444005)(2616005)(66446008)(6506007)(66066001)(81156014)(6436002)(2906002)(446003)(476003)(66476007)(6486002)(256004)(229853002)(386003)(6116002)(14454004)(7416002)(186003)(316002)(31686004)(4326008)(26005)(68736007)(25786009)(52116002)(54906003)(110136005)(8936002)(7736002)(99286004)(486006)(102836004)(71200400001)(76176011)(53546011)(71190400001)(5660300002)(478600001)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2699;H:DM6PR12MB2682.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: lPGUkF/S3+3IexG0U4vp/ok5G+j+8fd+xFVuwQmLEnun4FMRyrz1ediXV+rPCPcmxqLIplA98J+gUQX17czAOqIuWSg/EnJpqyobFPc8ZUzDBBpFkmts7ff+2fuI978LlyS1iInCBdmTB+NLTeyGsGeKkpGLpco54ftI6QqQAB+g32eCshavOyzagVnIKNmGVrBOALpKg01nVL1Fao0FOYs1wSb9NYlsBxa1+8I0Bst4JMofTloWHv7Wx3bbfFSrZm86w+vmRW8k+7MWTYZFdMqjRwxB3ly8x6qShUmxREdlG4t1dmZSRX/XkW2wUorps/A1z/uRiPFmMjUPbNwS+zlA5yMTdDFJO9kQBnFnE4qLWfD5bvJh5RFg5+QVjYIFcwCujB+EIkVqwIkqFO6xaa2VjpmnQGKC9TJ8RhPg7j4= Content-Type: text/plain; charset="utf-8" Content-ID: <7E8AEF74D3621746B77BA94D921E3198@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d636bfbb-9cc6-4926-46d5-08d70f82cfd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2019 15:31:20.4548 (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: sbrijesh@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2699 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDcvMjIvMTkgMTI6MTIgUE0sIENmaXIgQ29oZW4gd3JvdGU6DQo+IEluIGFkZGl0aW9u LCBpdCBzZWVtcyB0aGF0IHN2bV9wYWdlX2VuY19zdGF0dXNfaGMoKSBhY2NlcHRzICdncGEnLA0K PiAnbnBhZ2VzJywgJ2VuYycgZGlyZWN0bHkgZnJvbSB0aGUgZ3Vlc3QsIGFuZCBzbyB0aGVzZSBj YW4gdGFrZQ0KPiBhcmJpdHJhcnkgdmFsdWVzL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