Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756394AbcKWRBi (ORCPT ); Wed, 23 Nov 2016 12:01:38 -0500 Received: from mail-bl2nam02on0040.outbound.protection.outlook.com ([104.47.38.40]:13022 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753974AbcKWRBg (ORCPT ); Wed, 23 Nov 2016 12:01:36 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Subject: [PATCH v2 0/3] x86: SVM: add additional SVM NPF error and use HW GPA From: Brijesh Singh To: CC: , , , , , , , , , Date: Wed, 23 Nov 2016 12:01:29 -0500 Message-ID: <147992048887.27638.17559991037474542240.stgit@brijesh-build-machine> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN2PR17CA0038.namprd17.prod.outlook.com (10.169.188.176) To CY1PR12MB0668.namprd12.prod.outlook.com (10.163.238.153) X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0668;2:pN3hIz/PqxM0yCPaFRvtCE3LLL1MGF7WHng8cYJSlXRt1+hJE7pMzZA7Dfcd5vPIx421cblVrkmmJ8Gzs5Pi7UpfVCcEgA/OKYa8u9PvBG432pelPaOtaW/GO5GvIDtJQOeprHVd2YvHBrGEP4Ad2eMlTGuN0aTYEgMc9h1jXb8=;3:TshwJjp981ZDms3JrlJoYzJa7iA2oLHjVlF4beu65NisApgVGvbonkG89dQng4ShWaBGYcA7Z7tIUj4vxda+ivo4OvJJVdT8FTpi+GgkTohHlpkgEHpmBThTEKZTjt25GdQCTSeFRI1b6sNtJQeglM9uheI0618O56e21HdRgVQ=;25:IXKav3DAEMHWcL3PS345BzNTnnQ1d53qOeSryX24PuOwGPy5iGT+a1LzcW4om+OmJk65DZ2G8POUZ5MIzmK+bdXFAKf51zGi713TIuo1bCHmluuRcP6FR2THxoB2vZMad2d0Cww0dZHUWaWceqPMKOEOEl+SrhC6m1PB94Y+2Dc2G0OkLvf+ljcjV8iYgKjnwrOQHSH+CQutK9tmPHhVh2Sq1YaXLUS0E3+NX8yjGzUuIuiBdodN17tWwfUVkl5xoY/jHIO4OzGq56P/xgmR7bvTHTIY/3u8YPK5C5TULS7WGPAs1kJNwXeRBNqOliKYsLvn8GI5VTYOJ3jxQHNq/7Gw1eRXANzrUo8odSRZ4zi3JJUZOazsjj3ywrEizfSAL1da4x1YgU/s7fmLg8jwXKVCdzVHpyS1FQU493/BV6SeVCZfTWAh8C6W2uV6U9G6R8wZGa8XJn/RhwhQ4+pa1Q== X-MS-Office365-Filtering-Correlation-Id: 7dc0bd0d-c355-49c5-0e39-08d413c260ae X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR12MB0668; X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0668;31:d5k9Hiwu/hxWoKX8Hxwni/YNF7/+gbIHYBPfBv4muPwPs9FkazQgR5JJFpxQCU7l05E32H7MSQVigyVF0wZuU/9PrLvIUZETle6ItrtatKa5DocbaM9SuYCioHqTowGZn5nP3+yaK9AkonZ7U8Sq003BwDg40fhj4q17EYjYs5eNDE0cA2jDnRQeZELRBaZLqTWyj/tkzsD1OBO/tmHdadzXYIQe1pNe4OeEm9qKjAE18gDng6Mwrz3cEqYatNkz4Rk895S9vvLFcPCnrTTthQ==;20:h8BmhgHue3OJCBqKRdvio1VLFR+3oU7cTvkgHQ5SBnfi4Gm9DcKojTPO2eCX822BLhNhIjsDi278JlLC4z3AIEJY/2BVXJabejwHTp6BZCkegScSK9YBpE71dGfP8lTDx3Au7kMOrMxREzZtllPqt5Puhygsn5UDYUjRZR4M1sARP3XkjflV0lPrZAYV90zipWsVGAW2Z7l9u/PWmkDD6kyXGidXf80HgvXYHRfOWZMetMfoMkTSQ4hkKImkTWb6mabiK7F1mOutKvHluLxbYaLmYuz7WWiElIKWZ4UyrGZweendurx18WjMG9PMsYEtRKOUVpKFPADAFch2S5TCH2LkLS8qYUMXTc2SVelWPMTn3h6zHVtw+m4xj/Y6hflxlVBwR2lgCxRP+S1UOAZTNLA07FsYt3FXOi0ycRQZczo2QBfaHh/Hvi0ybMeMD4E6TRKcvfy8A8RRI12/FxU5lCaAv9JxblAG3BkZ0W0cqrubud0/bT0zfaHhFPLX7Ew7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6045199)(6040307)(6060326)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6061324)(6041248)(6042181)(6072148);SRVR:CY1PR12MB0668;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0668; X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0668;4:JkJDpnnw3ubKom/45gCdBA8AfTUN0SYkrx8U3pPXnpng+TiBIqv+XpW5iE5ZkruUNU1Cztj1YlGuPxIt45T29rFuhdeSFUOBhjIHxv4HFq9nfYyvi5eD8NUf8INp9CwxXLja5ft6yIAlu8CcndKiHdBX+g5AT5dDvDGUNa+qhaUASm7tehjXq7cfqjrIkHGz8cWbfwVWh8Gp/IdaL5qkcy5Q5Q9xKbpyk5E4IzkCZgC34rVvNAblRUOLbOnxnMSBLotGSTMMMy22xGigAQkA1CLCcD/X3HWkXhLcPczgYeYASgao8qWota3KPOscA/nYselM4+oIyhCIpd6AXyEiRw12uXt1g67rCj8ymYobuFgGrUYjPjMZJ9CZa6f7K2dDat1Re4neB9Qp2BHEmcGbOkRuMWFhWaOjehDo5y0OIvZCAE4wiBwKytM278K2NPIVmaZr/tgphUMEv10iBrsb8vdz7+UlTpZNKRNH/eu4ybv50qCAcy4/VH6+PgqMg27Hi8sfr1m+R7aunZYK5MmfPA== X-Forefront-PRVS: 013568035E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(209900001)(189002)(199003)(7416002)(50466002)(189998001)(97736004)(92566002)(68736007)(6116002)(33646002)(4001350100001)(3846002)(105586002)(2906002)(38730400001)(4326007)(9686002)(50986999)(86362001)(54356999)(81156014)(101416001)(77096005)(81166006)(15395725005)(305945005)(2351001)(66066001)(7736002)(5660300001)(23676002)(230700001)(47776003)(42186005)(106356001)(6666003)(6916009)(110136003)(7846002)(8676002)(33716001)(83506001)(103116003)(217873001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0668;H:[127.0.1.1];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwNjY4OzIzOi9XQW5IeFhRRGF3YzZwamFYVkJmeHFGZy9L?= =?utf-8?B?VzhEcUhtT0llOSttMW1MeUVPM1psUjlDWHhtNTZRUjJVSW1wYmx0SkFudHh0?= =?utf-8?B?NjNXRCtXQzd6NjNDYnBCUjZxdHJSU0x1bnpTcytxZ1MwMDU3UVhHck9EZ3ZB?= =?utf-8?B?b0JBOXgvcldrdllRcUw5dWVPN0pkTDZnTGR5QmY4WU8yT1ZFM1g0dURKallC?= =?utf-8?B?SmUremFacjhod3N3THJTN0ZlY3VscVU3aDlYbkllRDBpdnBMT2dlQkx0aGZC?= =?utf-8?B?WUFxOFVpek5CZ2JOTDV4OUJ0OWNRVnpKMnA1ZGFWVWdDSjZtWE9USjExMm5h?= =?utf-8?B?Tm9HSS9CY0NteTNOUkNUV3Zia2p5VzBVMWJUS1dmUjJVKzZZUGpGdzVvdCtW?= =?utf-8?B?QjdaTStyM25PM20zOFZydysxS3JKdmNVeU1sbG5XbHhVL0NOeGNjRXVPUnZx?= =?utf-8?B?UHZkZW1KUUR3ZjhBU2ZFWVkwS1BEbkt4L0ZWTDlwMzlBcktRSkFwUnplOUsy?= =?utf-8?B?SUFwaHk2MWZXVlFTdVNFMCtOZTdDS1FaYmpZa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UlplZGFxdTQzeHZQTjZmeG4wUDJvWGdjN21xMXVzdmQrRmRm?= =?utf-8?B?YWlKTm1KdmIrdXBZQ3FrT0o2TnNlemxBakNZVGJMYjhrWlFIc3gvR1JydmFF?= =?utf-8?B?VEloblRReFdDa3Q1U3FJVThJSXkxOWkyQjB3SEhBTVhVemc2ekNOd1dUQUZS?= =?utf-8?B?OE9yVS8xa21KWWliVGNGUFBPZFA4ektTeUVIU04wNVQ5WG1ndXRIMTA4cElZ?= =?utf-8?Q?5FpjcjEd4lbTjIeTAQ=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0668;6:ZelUagA+j/MNgpa/HvpcQkmLFVTOxZR/qN+ROMlAfMAAj1myuQp//5/hRCprZCNbubysj3uY7kK9B0uzwwEfXJ2puftjM/F6vHhByzCJR0yhppd+QG8t74EM4b8WZkPPp8kMSDbSMMfeY8wVZjho/8r/c6dwDrmS3/m5/j/6vdqN1Wfv3fG5/neIsdwP4FSjtjhow232C/bjk8mJ/wWLYXm06hsL0gHHiudgzt458dSL0uPmxbr2bRUUCJSGS99I42ki4/jTX+pRYm2maE5ab8O+ZZZy8FjhR3cyhH8Gw0xvUxIPTDkkNo83aK4UDskjw/UYnNsXAJS/IXir5V4SArQlTwtJQRwTieA4Tbdk7qaqQOucBHcdu5o9XC+jE/Bu;5:S1pvO9qKcdvpu3ILmvv+c/wU8lrYR55NH8vgfTSfSTKlI/BoVBNllDwAGrjJbxF6haAyyLxb3YMB0EwQHQzGPAepEIaSiMk21yzdnMTcy3XwXRQ9hMQxu/is1ealIE5qCIoGsWv6VWu6G+lRs0IjUw==;24:229p8MzWtrjv4Y+PouDVJkTCgnnODiLTBr4R9rqKcGscdfNv8TthTV6g6X3MTOpe51BkU7VfMN195dpFE91x8ymEFkuYourrZzid393wHYc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0668;7:R4Pe40XC2A1T+5gLIWuxh9fvJF3araQ7q8FpBSjR87EKFdwBK/4GVyQbz054Zfz/P6k2Z6EFrHXCNYEH9F6pRDkdw1g/A+I+dLUxAMAWzcFLgHv9SWkQO2ITsUz0joLkN+RNSaWfXl1MtsX8ZkPPJfhs0WcloTmnls3rW7v7epkBNLXy3reVOncMlC0y0r05Y8c+waRLxacngHYmm8KBY5qMHeCnHNJbfqpDdjw4BYaDJtKY/EGlFbe03VuSIAk3OfQHpyLufLFRQPwkMSOR+Ym6BelnW1QnTvGfn4WuAtlLg8cGiPPIwfbk2Dv4hzqdZlG85WkRdo0Xc4yZQ72zsk6k16yT94tOZrxwedQP8Mc=;20:UvTY8wycZ42AM+eSIxGmJ4E1kAs6qYSNfoGNjt3xjElxrBuoI2rYO730tbGRua3FfBJYRsks3eG3Av2ceXwpn7kjBe91+1+7sJFmJrPUjiF3jVeCzsIhrERthG0s8nhQazX9gFkvOFQ/Cmi7867/JANEnyfCew5nKcz8azzf6j0FwwhqU5WnVimbq352wcXVTxHm07nKNNeBcwjlfas/7cUSt/JXqYZVo8A1R7lz321kmwSt4IFS2GmVyJUHT4cH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2016 17:01:32.7301 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0668 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 30 This patch series is taken from SEV RFC series [1]. These patches do not depend on the SEV feature and can be reviewed and merged on their own. - Add support for additional SVM NFP error codes - Add kvm_fast_pio_in support - Use the hardware provided GPA instead of page walk [1] http://marc.info/?l=linux-mm&m=147190814023863&w=2 --- Changes since v1: - remove redundant gpa_avail check Tom Lendacky (3): kvm: svm: Add support for additional SVM NPF error codes kvm: svm: Add kvm_fast_pio_in support kvm: svm: Use the hardware provided GPA instead of page walk arch/x86/include/asm/kvm_emulate.h | 3 ++ arch/x86/include/asm/kvm_host.h | 15 ++++++++- arch/x86/kvm/mmu.c | 20 +++++++++++- arch/x86/kvm/svm.c | 9 ++++- arch/x86/kvm/x86.c | 60 +++++++++++++++++++++++++++++++++++- 5 files changed, 100 insertions(+), 7 deletions(-) -- Brijesh Singh