Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp601759img; Fri, 22 Mar 2019 04:58:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx64MxsC86YV0U5IMj2wC+6PXbDa6k6Cfmvciz0aWwgJUX18mPNFR01DqHZn9qM4r7R1vSt X-Received: by 2002:aa7:8082:: with SMTP id v2mr8743183pff.164.1553255904856; Fri, 22 Mar 2019 04:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553255904; cv=none; d=google.com; s=arc-20160816; b=XvAY/p6BJJiaUOOtcuW9kzI5cDW4KI/Lum5K5LVEytknq/luYWq4BwIyyF2TY3E2SX jRUPOyiXn7COEVmxV8wkjliR1cTlMAWAOt85C80hhn2blquCyMHQpALqCPSuz+4pvrQ1 7eUbFbPP5rC3taDEBlJrRp572i1hhrlsNZgs1Y/d54OIOUrOgjcPtrWDEJTpR+AVe14o M1qo+IFLQSEOvUG9NZcAF11JiMuloIi/LUj/mgNEoAk5fdkmjtMsqM1q+Dd9Oo0Y92VY S63xBgYtDmQaLHAFKdGX7TroeyMtXKPcMl2NOdofqHbdsfS9LhIMtMcx78kNmKRHGLua X0MQ== 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=AkItXx/ZFKpKh6NpIZIxqhEx1PGHZOGdqgUXxMS0YHg=; b=TUCabgYY40rTMtW95vda86vAdF4ALjT+b5a/NZ9di19THzQAoVXxs6vMvhROvgZZpN V6L8i3z+7r7GOfjSx2zVLul8WVjPgVAsXUCMrJARSmCvApWMF6mAx+VR2aMPPdRxs0VT rwAM67jwjwXusOyG5YOGZJDFk8IkAtw5rRc0Y496mpsR+awgrtMnm++I/82hHURMYtBM AN/HoMUJOBX4BMxB0bDDjba/IbPen1C1Xt+3bB53jiqH4e1x4UPt9GUnRXvoKpNRVn0f Gf6NBz7iRGJNBfy2AA+EjU0+h0Z6Yk/w0HwaK8UGycOwaAI+WI90Y5Gf/Bs4XrVEclsv M5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=c3XNRlqm; 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 c141si6657399pfc.169.2019.03.22.04.58.09; Fri, 22 Mar 2019 04:58: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-amd-com header.b=c3XNRlqm; 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 S2387693AbfCVL5f (ORCPT + 99 others); Fri, 22 Mar 2019 07:57:35 -0400 Received: from mail-eopbgr750088.outbound.protection.outlook.com ([40.107.75.88]:59370 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387680AbfCVL5e (ORCPT ); Fri, 22 Mar 2019 07:57:34 -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=AkItXx/ZFKpKh6NpIZIxqhEx1PGHZOGdqgUXxMS0YHg=; b=c3XNRlqmuhvM118EsfK8mAkGfiFVkqjPKpADtEJbibYI6yh2RnuKwzUx0uSN6Ilp7/daz8ii6Gv2qFDLCEUf3BoPbmZu6AI1E5QkeD4c8FYCtnQClwMNvLuFxQQ6lHQLcN4SiwWtfwCLhyMO2HzvPbRu4nYB7NPwNNWuvxacpCY= Received: from DM6PR12MB2844.namprd12.prod.outlook.com (20.176.117.96) by DM6PR12MB2811.namprd12.prod.outlook.com (20.176.117.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.15; Fri, 22 Mar 2019 11:57:31 +0000 Received: from DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::3589:a066:e1d:b1f0]) by DM6PR12MB2844.namprd12.prod.outlook.com ([fe80::3589:a066:e1d:b1f0%5]) with mapi id 15.20.1709.015; Fri, 22 Mar 2019 11:57:31 +0000 From: "Suthikulpanit, Suravee" To: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" CC: "joro@8bytes.org" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" , "Suthikulpanit, Suravee" Subject: [PATCH 3/6] svm: Add support for APIC_ACCESS_PAGE_PRIVATE_MEMSLOT setup/destroy Thread-Topic: [PATCH 3/6] svm: Add support for APIC_ACCESS_PAGE_PRIVATE_MEMSLOT setup/destroy Thread-Index: AQHU4KZuc7R0vj5ZskiFGY4oB385Jg== Date: Fri, 22 Mar 2019 11:57:31 +0000 Message-ID: <20190322115702.10166-4-suravee.suthikulpanit@amd.com> References: <20190322115702.10166-1-suravee.suthikulpanit@amd.com> In-Reply-To: <20190322115702.10166-1-suravee.suthikulpanit@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.121.138.205] x-clientproxiedby: SG2P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::34) To DM6PR12MB2844.namprd12.prod.outlook.com (2603:10b6:5:45::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b087b000-b7c9-422b-9b3a-08d6aebd9060 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB2811; x-ms-traffictypediagnostic: DM6PR12MB2811: x-microsoft-antispam-prvs: x-forefront-prvs: 09840A4839 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(39860400002)(366004)(136003)(346002)(396003)(376002)(199004)(189003)(52116002)(71190400001)(86362001)(105586002)(7736002)(5660300002)(186003)(106356001)(53936002)(25786009)(76176011)(316002)(4326008)(14454004)(71200400001)(99286004)(110136005)(97736004)(102836004)(26005)(54906003)(386003)(2906002)(11346002)(478600001)(2501003)(66066001)(6486002)(6512007)(6506007)(68736007)(14444005)(256004)(446003)(36756003)(476003)(72206003)(486006)(1076003)(6116002)(81156014)(3846002)(8936002)(2616005)(8676002)(81166006)(305945005)(50226002)(6436002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2811;H:DM6PR12MB2844.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: AKygTUcmWnKTW9TFbikQYzv3G8m6h6h28OAJbYXnlTMi8z5EnGdpuU15LX7/uNKtS3l+opOUw/FeCEXob9VLaqO/b+/pnEgOm0TojjwbR/bldmZgwAlRXuMx0JiaYrywl8R7OUSkUdCguAf3dLUM9ST9X3LS/kxA+m7uhSqigdfntGHXpOr/cOXO9Cugz0Bmv5LS/XdNQQ+qZKxsfLdiAmXV0YUzxoZ0JeeixE/MmuWRjdo5YzLEiERGmWPRS7J5unn104vImJlq41Xtw/SiU1XKdremqPto4N7sMFzd8MkIz3qSAKxc8UMFRBR/5HzYHRqquzEBeiZ67KIBBF2h0JtJk1Te6tbATM5nvkL9Km56mvHxVU1cV+zC+c6iwV7DxVmMaV18A46mxq/HeHEHAnn3gv1xRrS+BRHmuCCx7m0= 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: b087b000-b7c9-422b-9b3a-08d6aebd9060 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2019 11:57:31.6868 (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: DM6PR12MB2811 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWN0aXZhdGUvZGVhY3RpdmF0ZSBBVklDIHJlcXVpcmVzIHNldHRpbmcvdW5zZXR0aW5nIHRoZSBt ZW1vcnkgcmVnaW9uIHVzZWQNCmZvciBBUElDX0FDQ0VTU19QQUdFX1BSSVZBVEVfTUVNU0xPVC4g U28sIHJlLWZhY3RvciBhdmljX2luaXRfYWNjZXNzX3BhZ2UoKQ0KdG8gYXZpY19zZXR1cF9hY2Nl c3NfcGFnZSgpIGFuZCBhZGQgc3JjdV9yZWFkX2xvY2svdW5sb2NrLCB3aGljaCBhcmUgbmVlZGVk DQp0byBhbGxvdyB0aGlzIGZ1bmN0aW9uIHRvIGJlIGNhbGxlZCBkdXJpbmcgcnVuLXRpbWUuDQoN CkFsc28sIGludHJvZHVjZSBhdmljX2Rlc3Ryb3lfYWNjZXNzX3BhZ2UoKSB0byB1bnNldCB0aGUg cGFnZSB3aGVuDQpkZWFjdGl2YXRlIEFWS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