Received: by 10.223.164.202 with SMTP id h10csp1702682wrb; Wed, 8 Nov 2017 08:20:15 -0800 (PST) X-Google-Smtp-Source: ABhQp+Sr8ZiTIag8lYkJa0C8qnSOqDXorQFVd5Vkad8KOl4zQPmSHTI8nF8ybsPbh3OjJiYfEA12 X-Received: by 10.98.56.18 with SMTP id f18mr1029763pfa.81.1510158015488; Wed, 08 Nov 2017 08:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510158015; cv=none; d=google.com; s=arc-20160816; b=kKA5wEh/OYSid2Vv7vLMHAM7m0xEDL1VsdXWSzTdyjWS4Nz1dCgSA64pZ24Q4bKu1z PHplT6X31sWPp47bh8pl7qD1i27x6WA/2p5ZLzD4a+tTSQWUAUjDCsHMAleXzgqW5NTX pBGkQYqYVIim5Fn934ZWf2t+0cw4IQ+AGKophiQ0YhBIARCT5rtLjNZ3TXt7qT3tOM+A MtqL4jBCJe/5OnmoRWJyZTbta7R7D/+vcM3oDe0e+d2XTmO6jV2r4YxZc56dOJOt8+IR 3d1RfUBVU8dHtoo1kLbJcD6rTogcvhnVwUrpSgXeSg6loXYgcvrewXFuAcXW0GQkJEkA hH7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:to:arc-authentication-results; bh=JeP2knljWd67aRHQ1b6mIzgqlIbOjIyy90pHoKM/Rhg=; b=v6kjjvGWGKgeftof49AFS3h1KnuBZDT28yBHjTI5H6utZ1m/cLZdWeZVLcahLZA/Ep KXa7pYhMnp47NDXl255A+bEWgkPDakdElzm/iC66F6AbvW85rybaf1tqmh8L7ZW+FqGg oWeGIF11coehuB2Kg83xhzgPPJpSsj82kE5giWtX/q+NfyIHTj/SxkLdRg/o2jr5R+kq lp2evZCfVW4eVlaXk0QO08uhFcaT2nL1esser1liNOn+R8j84anLEuC+vkQG5bZzbT8e e7x+B0mW4nQfu9h1Ff9MgiACa8pSZhH+eEwXZc1aa0hswvzRYyV8i7tz4CbAstOAvF+7 Nwag== ARC-Authentication-Results: i=1; mx.google.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 c76si4092076pga.197.2017.11.08.08.20.03; Wed, 08 Nov 2017 08:20:15 -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; 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 S1752694AbdKHQSK convert rfc822-to-8bit (ORCPT + 83 others); Wed, 8 Nov 2017 11:18:10 -0500 Received: from email2.exegy.com ([216.33.75.132]:45689 "EHLO email2.exegy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbdKHQSJ (ORCPT ); Wed, 8 Nov 2017 11:18:09 -0500 X-Greylist: delayed 370 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Nov 2017 11:18:09 EST Received: from mail.exegy.com ([10.19.1.37]) by email2.exegy.com (8.14.3/8.14.3) with ESMTP id vA8GBuYU025455 for ; Wed, 8 Nov 2017 10:11:56 -0600 Received: from [10.19.4.86] (10.19.4.86) by mx2k10.eng.exegy.net (10.19.1.37) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 8 Nov 2017 10:11:55 -0600 To: linux-kernel From: "Mr. Berkley Shands" Subject: VDSO and Intel Skylake Virtualization Message-ID: Date: Wed, 8 Nov 2017 10:11:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Scanned-By: Evios on 192.168.78.240 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FYI: We discovered the clock_gettime(CLOCK_REALTIME, &ts); was taking > 6900 cycles to run on intel skylake cpus. Normal is ~60 cycles. In the kernel vdso code is a very nice comment about 1:1 paring in the hypervisor or the syscall would be eventually used. Sorry, but with no hypervisor running, the vdso call will always time out and call the syscall. Disabling the Intel Virtualization in the BIOS corrects this issue, and the clock_gettime() runs as it should. It appears that many folks have run into this issue, and are looking for a solution. Should the kernel check to see if there is a hypervisor before getting confused in __vdso_clock_gettime() ? Berkley -- //E. F. Berkley Shands, MSc Senior Software Architect/Engineer Exegy Systems Engineering// **Exegy Inc.** 349 Marshall Road, Suite 100 St. Louis , MO 63119 Direct: (314) 218-3600 X450 Cell: (314) 303-2546 Office: (314) 218-3600 Fax: (314) 218-3601 The Usual Disclaimer follows... ________________________________ This e-mail and any documents accompanying it may contain legally privileged and/or confidential information belonging to Exegy, Inc. Such information may be protected from disclosure by law. The information is intended for use by only the addressee. If you are not the intended recipient, you are hereby notified that any disclosure or use of the information is strictly prohibited. If you have received this e-mail in error, please immediately contact the sender by e-mail or phone regarding instructions for return or destruction and do not use or disclose the content to others. From 1584643366821253846@xxx Tue Nov 21 03:07:59 +0000 2017 X-GM-THRID: 1583695406682488403 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread