Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754281AbbG2OIN (ORCPT ); Wed, 29 Jul 2015 10:08:13 -0400 Received: from mail-db3on0066.outbound.protection.outlook.com ([157.55.234.66]:1056 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754253AbbG2OII (ORCPT ); Wed, 29 Jul 2015 10:08:08 -0400 X-Greylist: delayed 876 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jul 2015 10:08:08 EDT Authentication-Results: spf=none (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; redhat.com; dkim=none (message not signed) header.d=none; Subject: Re: [RFC/RFT PATCH v3 0/4] KVM: x86: full virtualization of guest MTRR To: Paolo Bonzini , , References: <1436368710-5452-1-git-send-email-pbonzini@redhat.com> CC: , , , , Eugene Voronov , Mike Dubman , "Michael S. Tsirkin" From: Or Gerlitz Message-ID: <55B8DAB9.9080204@mellanox.com> Date: Wed, 29 Jul 2015 16:52:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1436368710-5452-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.223.0.80] X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;AM1FFO11FD024;1:KZ/j8MJCyFBpHTNGgr7XOn05JsJ6m9jZYeiLtaMFIaljYo4T986ftVCLUW4iKS4KH6r8C4yfqT6QWN5ygvJzwMbqv1LAh9ZRkcLmhvVpcxBnjv5LKdxrwSRIhTQmKm1bzLemZrq/P2iBek71m1zdj4fnQ2fXEruj25I+Cl2EOW4OOSLV48ctlPMTS121USc3QnLVdlVN7q1WnZt6C0ztNgt2UXc5t231MEaso/KWvgf4XPt9rMSRYzf5zOa2Nj1+gQEOw501b5k51V7Fx87nI2vgUqC2kTWGwurZbfF706k= X-Forefront-Antispam-Report: CIP:193.47.165.134;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(24454002)(479174004)(377454003)(189002)(199003)(164054003)(19580405001)(54356999)(105586002)(5001770100001)(83506001)(64126003)(87936001)(76176999)(47776003)(50466002)(23746002)(77156002)(2201001)(87266999)(65806001)(65956001)(33656002)(50986999)(6806004)(2950100001)(101416001)(62966003)(4001350100001)(92566002)(36756003)(65816999)(189998001)(86362001)(46102003)(77096005)(3940600001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR05MB354;H:mtlcas13.mtl.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB354;2:z+yvGGNytviaUxely/fFy9LCuhalEAt5kv+6tshZfjEBGusJXpTFFZyf1wj2IibuSqt3BFF7TNepeQcjS5QtN0oDAU9Qp3cG1gjUy+8rP4D75+yVKr/q3x5vQxQWjFVEEPwjEgMOWykPiGVLKcd+pZT05FpS85gKsh7m9w54I+4=;3:0t6QOOMVYtmWt7QfSPGtsme+kpjkSzvLWEdgo9aT34kXgttmdBWDL7tG8KCuuaF/iU/jyqwHDDni91kKeaUco8AGptkrOpS0dL8Vgex+JY2IRiwPZiBHHaXtgOxhCowjwbODmXc850i4x22RCICBweUflf+HJQsZLklRrFuqEwYZAYuTIoww/ghNhOi3G1y8gYicMqE19nkKPQPRgbOpHz08BP8HjU2pORO2HGHEAATYroTB2Geugt20hoOZ/7dk;25:mfaCg5Y0aX6X9BlkO9E4rI48ygrGfTAU9vaOAx32ieFLdFX+J8jQ06lTKN6E3CeGkvbUXHaPwzS/2IouH1qI7yubZ45eVrdiAX7zGIczcmX/N6pSdHAhV/shq2zRM+KkZnbHvXi/NxV8vLvE3qFVpYwjykY52+b0kfFjUSwASe7qWX5SpeBvBluuMFJp9maPhwICP8qQSmY+jHPdmmCkQbNdWsk3ZkLu//aFdBCoaFNsgLkuuP1ozOEU0tIyCQEz53cHmkhjCB7sMVcvIaVm7g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB354; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB354;20:VGbxIzmFGyxQ2r81tiZIkZLcKZNVZxFdJSKeSWwshUv/YXBXFCKUoruk7IeXXBkx8ZhMK1yxXDv0D+ZUAqXc5zFuPXxKFo4vQ+CZEd7G2fbHeHaPoL1HM9V5RxbW+p7vXjENv5PnzDK9wX7jskWiRamE7gCweX7HDfUsflRtfycCztqyM9bpzohgr9/GmeRK1X1VqvIdGLxmWyN+F4erdRn5GG1AjI1WsSO1Q0UYrQxkBkMR43un/7MV7ELitvy0h1tFYVKmbIJhMWOQqMcSe2ci/iFgcPjLxAu891T2x0FdZyh0z469yHqqgV1ujHbKBgZsqf0k+s2DyvjOoHgdLPcCHYtR6FfTBEyg77cLYHzKSzthPJhRQxXAWgb3AdpixscmGrvHlWMFdlcj4uuTbRzKM9SuoJzUBRJbGnU2uIEWC3vCVBqwz/GaBafksAgiC+cckNPhG9iix7iX2/tuhApAoD8hgMnYDiqmb+K+3Glc1mIK1HxwfG8E/znW/Qep;4:PAiOUSVjntffaUhQhlqOqLU1Y4acArU4QcdHB+i24wwNa0jywzQhMHY//llPDb+QL592y9WjGHPMRq+i6iYAbqISZgDriZsn1RsZ3A/ZsjO5M1S2PDLZ0cYLsM8Y8/0b6x+GPmVzv9gErylHSyjSQdVAxKXLUnLnRVq4IZJsQiUJPXfzrI5eiseWKeC0x3FAGHT4ITUXTsANJBYyflnWL12J+0aAUI9xdcpjW/5SYnyYL3FXQD64D+0PKlaZHl5Cmop4lkRcOqjd/OFLHbuuohwyc7ZEACzSxXbRgItlkIM= AM3PR05MB354: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:AM3PR05MB354;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB354; X-Forefront-PRVS: 0652EA5565 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;AM3PR05MB354;23:Hp72xqj/WXQdvGW+cJNG6rJWPoXTZPXSv41b5a?= =?Windows-1252?Q?v/19vf9MQtgoV/ucOp9EELKJXT+zp/suoIxWEeNuSEpe/yx0Zbwkyds1?= =?Windows-1252?Q?IRKx1Tqq9e6oHu2FaQ5dGaLYp0VSU+IG+DKlpgJuYRdLcawzMgE5w4HB?= =?Windows-1252?Q?rK1+XJwrh1vlxQthLu3sJ7K6BSDz6R4SMFfVn50V67lCKdSdUdPbdN9e?= =?Windows-1252?Q?669YgkiILXF4D5rufoO7WIMUuHhQxMHBwLNRPx/qxtIUJHaYoWwjiNPp?= =?Windows-1252?Q?cW5xGnDRVD5ltY0cd+XbX5tOSzKIhiP8ztNaN0KN+d2gQ2r50Fmgi3V2?= =?Windows-1252?Q?JRD9H/ybQiuV648YC3Kh8BmHrsZ+zmARe/mzZBDC6bUNYHk3tJE5W/+6?= =?Windows-1252?Q?eRJV28yKUItkV3unUDrRAu26aJxMfdYps8NIpmfk7O3syIcEvh5YpFyw?= =?Windows-1252?Q?mGFDTgdAzFiexMUl5lgerMDgR3T0/CWSxbifHWnVpwocBKfDuKxvyEg5?= =?Windows-1252?Q?hc5/xI7xr3A2d+8Gk/6fK+typZULxHqkBrsK7J63syw8bb4juodzJuN7?= =?Windows-1252?Q?4wR/8D5Qjqe1Z8s+lrb71jXH9C4b2j17lWkGS8Ujf6sUPHVbtGSipYAO?= =?Windows-1252?Q?9uZtrdJBy2pNIjyH4dQAz8wp2w6DbWse7pDICFqDnNbb8CygJpRhe79b?= =?Windows-1252?Q?COmNj2aPapy0GSwcnXCDKFsk0S16/5brwxS1Y2dBn3TEv1+NL7E7dDt4?= =?Windows-1252?Q?KqAu9HpNxidEoKZFdY+8SRx/JSgK06U7ykwxJECcFVhjlCYWhn1wn5ih?= =?Windows-1252?Q?pR3skhxDrh9Z6Gq7kTR8mddh1HxKBQtBO23LBQxulv5Cb1FxbIPB7dft?= =?Windows-1252?Q?Wpx/84kClu181e2qaCuBKQhe5iuJfbGEjvmVyxgRTLRPs1IuZXiH4pxF?= =?Windows-1252?Q?ntqtoTq82eShO9PgM1duapaeqRQgGyv9Z0hV1FQGYA5la6zaYZFATwkN?= =?Windows-1252?Q?O8exrhSxYH5GBqgSZo83t1g6mzhA8uDUtYWoOJgDVtJDVg6wS9AkrUN2?= =?Windows-1252?Q?jVflq1OW9SoiJSJbtKX5Z5pmxuX0OzZUZG5EAnl1O3ki0MPpsC+yw2mw?= =?Windows-1252?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB354;5:NJzf2fsqm0rM9E76kwsgHP7fMhjmlk+ZwWVoo79L5VOEDdONOF6TkkYmPeGITYR9xgkWS30ebL8Gty1YeUNKNac2jem+9I3WOEee5wPXL2emCedRVFP4I472WMGx22/Qn3poxlBCw0rWjAfD2PxJ3Q==;24:2S8WsdPrt/05SqBMQDCalLl3KwRDtLyL1xr1u6MwAOJJUUcOxdzT364cE0z4ECyP//6ogQsj/wHbupSoPxz+6R+7g85dcW346M4DQUHQ5RY=;20:aTsZBaky80eUt9Mg6DOtJ+Aqig+QUmAdG5X6/sMPqXVu2DcFE8IhyVpG6qrm0+/Jn6fEdmrP8ZLdqoTCWG2xEg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2015 13:53:28.1700 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB354 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3021 Lines: 82 On 7/8/2015 6:18 PM, Paolo Bonzini wrote: > This part of the MTRR patches was dropped by Xiao. Bring SVM on feature > parity with VMX, and then do guest MTRR virtualization for both VMX and SVM. > > The IPAT bit of VMX extended page tables is emulated by mangling the guest > PAT value. > > I do not have any AMD machines that support an IOMMU, so I would like > some help testing these patches. Thanks, > > Hi Paolo, We (finally) have results showing that the patches work well and provide benefit. For getting better latency with ConnectX RDMA devices, we write send descriptors to a write-combining (WC) mapped buffer instead of ringing a doorbell and having the HW fetch the descriptor from system memory. In the mlx4 jargon, this optimization is called Blue-Flame (BF). To test the patches, we booted two hosts with 4.2-rc, patched with this series, over which a legacy (RHEL 6.x) guests arerunning. Under SRIOV, the mlx4 VF driver queries the mlx4 PF driver on the host if BF is availablefor them to use. We did two runs: In [1] the guest VF driver was told by the host PF driver that BF isn't supportedand hence they didn't use WC. In [2] the VFs were told by the host PF driver that BF is supported and hence used WC. The results are provided in micro-seconds and account for half RTT of nativeRDMA latency test, the WC advantage is notable, so +1for this series! Or. [1] guests not-using Blue-Flame / Write-Combining root@host-194-168-80-68 ~]# ib_send_lat -a #bytes #iterations t_min[usec] t_max[usec] t_typical[usec] 2 1000 1.13 11.53 1.16 4 1000 1.13 6.33 1.16 8 1000 1.13 5.17 1.17 16 1000 1.14 4.37 1.17 32 1000 1.15 5.01 1.18 64 1000 1.19 7.96 1.22 128 1000 1.28 5.44 1.31 256 1000 1.62 6.90 1.65 512 1000 1.78 5.65 1.82 [2] guests using Blue-Flame when the host allows Write-Combining mapping by VMs root@host-194-168-80-68 ~]# ib_send_lat -a #bytes #iterations t_min[usec] t_max[usec] t_typical[usec] 2 1000 0.86 16.97 0.89 4 1000 0.87 4.81 0.90 8 1000 0.87 4.89 0.90 16 1000 0.87 6.46 0.90 32 1000 0.88 4.22 0.91 64 1000 0.94 4.03 0.97 128 1000 1.03 6.50 1.06 256 1000 1.36 7.71 1.39 512 1000 1.49 5.92 1.52 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/