Received: by 10.223.176.46 with SMTP id f43csp803846wra; Fri, 19 Jan 2018 02:08:51 -0800 (PST) X-Google-Smtp-Source: ACJfBot+GmkCB2WERKEnIy5VptVUYF6dhDKaIXOKXRFmqY61E9XCwAa60ZePDkzVQ4d06jLlEOyO X-Received: by 10.99.102.1 with SMTP id a1mr12115375pgc.452.1516356531102; Fri, 19 Jan 2018 02:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516356531; cv=none; d=google.com; s=arc-20160816; b=jMZa6f6qambXHNQWko8gK/fVN0IQttLMv29EFRp6pXz9PdQriDV0brH9zbRin0qKto jkXjVBtFcvYhbWejptfGzygbPS6PF/RX8YkbmvBoUVXFv4BGvXwMbsiF7JUVLt2oCGx3 x8HT8dm0H5E0IBjw9lyXWwCLl9Q87etshjz5ZZFz8AHimSdISQe+ZmM95mp6woo8xYD5 TjBA9znkeZfttcX6ZfgnwiksqkHNQyCVlNyQZVW5mx6aYWpPf+wiZfaI4ECdIZwWjGLF H8ddcBOw9jFRRZU5zVC4JxESPz7mM4NUbxhcbG4Q61uC9hgjnvovGPycMHbff1xxenAb Ly/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=71LkfIms9Iie3Aco1gtSUuz+PDfKClNVOrnC5bgcSao=; b=KrCg6bmE/eXLzu7vzzg5FxS2isQxmEi3p1efUwUpcmvBMK+eycdQgidj/2N8KpFQuL AunMD2EgVWWLJInGYZNkxejcyOYlzWQGCF1trDoutSvZp91fchVQZiBgEBCJKxUOw/Qa +RpAIxyf1KBHg+kyEklfWEVbEmjJneVmiBKtu8vs6PzOxmXZnGIpxBBrCNSuLwb8VOOq YhRsho2tjqnkniP9EH2EWpWsz6G9Viab8Lx+hF7oUN0KbblOz5+QtNMoM9RW+ojQAXce RyORcP9aZ0d78Fgr/WzBLyV3/2zWDv1bSKNQg3vedMHMmr2JcWYcrlmddu5/pbhh8OsO 7bRw== 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 d126si7864606pgc.497.2018.01.19.02.08.36; Fri, 19 Jan 2018 02:08:51 -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 S1755445AbeASKGi (ORCPT + 99 others); Fri, 19 Jan 2018 05:06:38 -0500 Received: from david.siemens.de ([192.35.17.14]:57370 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754699AbeASKGb (ORCPT ); Fri, 19 Jan 2018 05:06:31 -0500 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w0JA6J99014765 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jan 2018 11:06:19 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.0.175]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w0JA6I2n022100; Fri, 19 Jan 2018 11:06:19 +0100 To: x86 , Thomas Gleixner Cc: Jailhouse , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List From: Jan Kiszka Subject: [PATCH] x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ Message-ID: <975fbfc9-2a64-cc56-40d5-164992ec3916@siemens.com> Date: Fri, 19 Jan 2018 11:06:17 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Otherwise, Linux will not recognize precalibrated_tsc_khz and disable the tsc as clocksource. Signed-off-by: Jan Kiszka --- arch/x86/kernel/jailhouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index 7ade152133c7..2b7ebbe9043d 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -176,6 +176,7 @@ static void __init jailhouse_init_platform(void) pr_debug("Jailhouse: PM-Timer IO Port: %#x\n", pmtmr_ioport); precalibrated_tsc_khz = setup_data.tsc_khz; + setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ); pci_probe = 0;