Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1445407pxj; Sat, 15 May 2021 15:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF/T7Meu/YLLcZ4evRFTDIW/H0nj1f7Ow2FFXQ9x5YBIHxpxXmAUYA47GYmVqzsIp/edF8 X-Received: by 2002:a17:907:d25:: with SMTP id gn37mr52311999ejc.538.1621117342327; Sat, 15 May 2021 15:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621117342; cv=none; d=google.com; s=arc-20160816; b=xw4UuHo3vI0XQHsj/ht1fCecCIi38Ia1wsxKBrSVPV4wR6lwd6sP4Pu/S5VgG8fZym sC3A2BpeSDh6y0J0dxDr5gCCW/o0QtGAHtplxv/WHv6IVsXMmN854atyCUY7QK6jXBWT RsMg+vBwsHij5dibyBJTf3/zLc/Ws72NVcYCDZtGpG3QNqGru5+lqEg1uDFF0C6GJ9cH r4xjo9n2pYHmqri3FWmk1ghwd0vGpswt8tcPUsDYx0r8jYCF/+o4IDBgqSIftJrzdycy rH2MksFVs5DXuD5Lnz6F5mT72B1TI8r+MasKPBbIMRzI6PV+ds/EtJzn1wHtthfLHWwb 4zgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=aLi+q4+fITY/9vJzQNwPaaIzGyuxiBdUvBE5MpOoWqA=; b=Z88Yta3lFHIFE+Q4TJIXIdxc1L7bq9i1CIx9sZsZ3KSfJ8LL+p+Av8I6HvnT8nK8kI vS2NLgMcBHN7+bjRcF0FUFrC6GquvQhwbqwyhDSlR/fWYGqe6lCqyi0Oe8wJDIbeZOgX T5L9Fx/XySh7a0UlhmWLvrxjcXfbzBygr5fXxRbKMFqHUdAU7E7krPBTyTpIyMtSMpa0 c7EZtuogwowK5G6pAdYMhajcvyGgHLSe/XGN3WDY2BzlCH8dvkCkAuqcDXvh+dULMPOg GNjj2iK90z9Utt4DoGcsDYx5Lf9+LYh8zNgGobQ8t64p503naCVAX5FnZwH2APBwj0Zu 1UfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si5553472ejz.246.2021.05.15.15.21.58; Sat, 15 May 2021 15:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232769AbhEOPow (ORCPT + 99 others); Sat, 15 May 2021 11:44:52 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:34515 "EHLO mail-wr1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232397AbhEOPov (ORCPT ); Sat, 15 May 2021 11:44:51 -0400 Received: by mail-wr1-f45.google.com with SMTP id r12so2057272wrp.1; Sat, 15 May 2021 08:43:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aLi+q4+fITY/9vJzQNwPaaIzGyuxiBdUvBE5MpOoWqA=; b=kaCtcRJISOVi5irJyVUQ/DY48QcdMP/zJlJov8oG36lvsowTd8ByHvcrFE5b2dLUH+ FeyrGgrsvrV/wiU7dKe6I4iJYfdjTCZIpIK0vHx/XYghNjOnK53zAqbvgVnvnjjWiV1s oMhlqQiCnsLuzZzEwA5x1BlDF+LJfFrb0zmm0FldQkDOUmdHwk4kAKjcbXAE41w+irQY ZGh2F4ukdlAb9RcxQnzFlyA7bu0jO5bBIjrlnXhguGh01FX/wI610iFpgrZWYEKD5w/F dSb5s5gS3kHkTH6XR7IAFXRh+W/uQo63B7otSYTTRdh9ZsmTZBge3s3zgu10WRyJjrS3 Cjpg== X-Gm-Message-State: AOAM533UcG8ttl0ia234tI6TQ5r59JkOMdd/2E3XgcsFonqPCgCxzkaU vPrJDZam6oeso145IUVOkQM= X-Received: by 2002:a5d:59a4:: with SMTP id p4mr9857559wrr.248.1621093417758; Sat, 15 May 2021 08:43:37 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id r11sm3644090wrp.46.2021.05.15.08.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 08:43:37 -0700 (PDT) Date: Sat, 15 May 2021 15:43:35 +0000 From: Wei Liu To: Michael Kelley Cc: vkuznets , "linux-hyperv@vger.kernel.org" , Daniel Lezcano , Mohammed Gamal , Wei Liu , KY Srinivasan , Haiyang Zhang , Dexuan Cui , Stephen Hemminger , Thomas Gleixner , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] clocksource/drivers/hyper-v: Re-enable VDSO_CLOCKMODE_HVCLOCK on X86 Message-ID: <20210515154335.lr4hrbcmt25u7m45@liuwe-devbox-debian-v2> References: <20210513073246.1715070-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 01:29:12PM +0000, Michael Kelley wrote: > From: Vitaly Kuznetsov Sent: Thursday, May 13, 2021 12:33 AM > > > > Mohammed reports (https://bugzilla.kernel.org/show_bug.cgi?id=213029) > > the commit e4ab4658f1cf ("clocksource/drivers/hyper-v: Handle vDSO > > differences inline") broke vDSO on x86. The problem appears to be that > > VDSO_CLOCKMODE_HVCLOCK is an enum value in 'enum vdso_clock_mode' and > > '#ifdef VDSO_CLOCKMODE_HVCLOCK' branch evaluates to false (it is not > > a define). Use a dedicated HAVE_VDSO_CLOCKMODE_HVCLOCK define instead. > > > > Suggested-by: Thomas Gleixner > > Reported-by: Mohammed Gamal > > Fixes: e4ab4658f1cf ("clocksource/drivers/hyper-v: Handle vDSO differences inline") > > Signed-off-by: Vitaly Kuznetsov [...] > > Reviewed-by: Michael Kelley > Applied to hyperv-fixes. Thanks.