Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp2128497imm; Fri, 6 Jul 2018 12:25:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcidM3Wj43/nQuPfg2wz7nSthuo6NX7LSrWeSA/Tzb1+SlC+C/ByUzi1JYeTJ6LspXwp104 X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr10832809pfq.30.1530905137093; Fri, 06 Jul 2018 12:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530905137; cv=none; d=google.com; s=arc-20160816; b=snI0XYytu6axijCv7rKMD97JzRcoDbNsVaa0cTeSA/TsOL6hRqubVJKJZVEo5+O8sd JcTUsRrTXwb40vR8Gs2Lh6jxFzRoJjDwXDOFAAoY5evxVl4clYu+uQCZ4GYWUXtzXeN2 A32KSL+0Tp75mkKsitcs2BKcJHLrxwQoWdu3DyOg7LUeFuELuJ2l6bXzKSQ7DPHHS2kU VzyEFcvGljdmwtKA8RK3mDue23wLRTQhApwxSZaY263aYGuSSAqlNAsUikFUzUwf3Xib DwIxgLW4UR+b8xOLFQZ7ElxeplOboKQ4W3smkkew3k41KfH05ZTW98gpIl52xz50yZYG BCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=X9mIVonzlcklxF/6J9YMdcNqHhQDtaczg9BahbknTfQ=; b=o57bdBo7RsGA6OCERrlr1ZOll+4s/iRiNBOGWB9z14p72bab51++iKHVn+dlsWaaUx k06UaFMM/sVndTbTBlZPNRllXOkSmqtJ1pn1c7OnXUS6YvqUSGx0DkF948DOhKOLG8KQ M+xifdKNVKUwlpzDhWBFnQMkph+yBtSpNbv/Rp54JC17rv6knGMCoUhPLLHn0dGx3VIM JVQK9vdB5c5KeyP2pbl5pO6beq6tgN5lICBbrsRzbHJ49PiaohyH5CZvu2jrfANmRAlY vHcyde0bcy6pMb8QT0lqSToPsgAngrosKG8wnTCqftdqEW/Ze9RyX6DVdqfowjd71+GF mkjg== 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 y20-v6si8692256plr.55.2018.07.06.12.25.21; Fri, 06 Jul 2018 12:25:37 -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; 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 S934742AbeGFTXy (ORCPT + 99 others); Fri, 6 Jul 2018 15:23:54 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:55882 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934536AbeGFTXw (ORCPT ); Fri, 6 Jul 2018 15:23:52 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fbWKB-0003rt-99; Fri, 06 Jul 2018 21:23:23 +0200 Date: Fri, 6 Jul 2018 21:23:22 +0200 (CEST) From: Thomas Gleixner To: Paolo Bonzini cc: LKML , Radim Krcmar , Peter Zijlstra , Juergen Gross , Pavel Tatashin , steven.sistare@oracle.com, daniel.m.jordan@oracle.com, x86@kernel.org, kvm@vger.kernel.org Subject: Re: [patch 6/7] x86/kvmclock: Move kvmclock vsyscall param and init to kvmclock In-Reply-To: Message-ID: References: <20180706161307.733337643@linutronix.de> <20180706162049.765314976@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Jul 2018, Paolo Bonzini wrote: > On 06/07/2018 18:13, Thomas Gleixner wrote: > > @@ -241,6 +269,9 @@ void __init kvmclock_init(void) > > return; > > } > > > > + if (!hypervisor_is_type(X86_HYPER_KVM)) > > + kvmclock_vsyscall = 0; > > + > > No need for this; by the time you get here, the condition will always be > true. And if you don't have kvmclock, hv_clock will be NULL and > initialization will be skipped anyway in kvm_setup_vsyscall_timeinfo. Right, stupid me.