Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp263745imm; Thu, 12 Jul 2018 18:59:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfr/7tESf23ZajtfX0xPnT6BTlNLn5YQMcv9VWtrrc5bCBypolaH+ipRdaeDpS+ONn6v0Qz X-Received: by 2002:a63:941a:: with SMTP id m26-v6mr4169180pge.82.1531447159073; Thu, 12 Jul 2018 18:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531447159; cv=none; d=google.com; s=arc-20160816; b=s8BWEAw+xsBZF4HnX1T/kUhSTXl44vH3kvJPJvRpFO7V83YfM7K8c+k542LNLBFHcU 1WWAxfTl+OAKXpCmkSxBm1YmKasAz6AugqdS4S6FZweRcGSQOC9aWGw46TY7hJOWn8Ht htKkxBad+NjW6JI+sXiUUqi3TEN5/MbUkAp7ckKr1qq06lphKO6wB2KDRPuaRRVBXaU1 T/tstsjeE9YEZZ5SvUT82yo9vfjxNYHfuh2T5Sm+2fyjqA4jT4u1z/y5q+wBeE6ZfRwi T5Uq6ywvyrAU27/h1Fh/ySs2c3/lZmpyNuaM/dufqd3XGVyVWZuU3811HGNlTFw3Z8+M OJEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=nQdqGE+K77MaxDhOmg40CAXU6twoI+B+omClLtdMwFY=; b=WJZK/AIC8O0/GqOAfz8e/nLjidYEs744+6lQW17bhSuAEElGuPHmNhi2/CrAhsYPd/ s7AIYguR3bMjNsJ5WacUA2DT24poXUqdT8ysTTQfj7AQZAo5Uqsn0KknzR9pyHVxC4qE zHyrpAldRv/Ehdxli5o0sJ6+58KrO2VA7LWAQyRJmkj6zp2Qgm1BQXoXChn8odVN3Pie C1WGANWi0eLHlQBwc5+Icxu3lNi4tvlZl9t/IPRR0nv8bo4mSyLL6FkjGsViWPro0DeO oXfiCBSmXX0VmtgYomxmYibRE7OKvSsy9NTxufV4KFqjgiTM+Xk9LhjfvDNCErZO0chC an0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=xgYyBh+l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si23126246ple.192.2018.07.12.18.59.04; Thu, 12 Jul 2018 18:59:19 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=xgYyBh+l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388074AbeGMCKj (ORCPT + 99 others); Thu, 12 Jul 2018 22:10:39 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:49660 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387969AbeGMCKj (ORCPT ); Thu, 12 Jul 2018 22:10:39 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6CNs8JM129705; Fri, 13 Jul 2018 01:58:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : content-type; s=corp-2018-07-02; bh=nQdqGE+K77MaxDhOmg40CAXU6twoI+B+omClLtdMwFY=; b=xgYyBh+lqoviFwFrqb5OMHxGff7upYh0ZNPr066l0Zu330hIdKj0N6f2QHZLUXuzUeoZ Dl/CS2i7/4U/0Y2UPAf4TkolCG3HGMnoeA4a8jGBiKnVZ/DMbKb71Y4McLnGYBaQVSql nvROnWAfoEyqZ+HocBuv6ZVoe6iWeSP3pFi8/5UaZjWwap7imyiRvN6QwHyhdL6Y6f6X /UJtYUbEYXF3qQmwm0VBF6k4vL6UO6euCBmqXxzbanpDMnjlLyrsErjwlRToAYR0Fjx/ B4RoVqiOFbzAMS6CsL2RWxIHu6ES0aajomrkFU8KYqgxTQglNOfNRUDdal+wnqKShzBF xw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2k2p7e5xrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Jul 2018 01:58:18 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6D1wG7f005090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Jul 2018 01:58:16 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6D1wFPh006007; Fri, 13 Jul 2018 01:58:16 GMT Received: from mail-oi0-f54.google.com (/209.85.218.54) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 Jul 2018 18:58:15 -0700 Received: by mail-oi0-f54.google.com with SMTP id w126-v6so59434059oie.7; Thu, 12 Jul 2018 18:58:15 -0700 (PDT) X-Gm-Message-State: AOUpUlEFbLKwMkemPzkoxQG7RVlgBGg75lN2zk/8HgCwsv2T95DAHsOL YAgZDC+COnCP8PTe3spG1MrFoKziGng7KXvBnWM= X-Received: by 2002:aca:db09:: with SMTP id s9-v6mr5264636oig.339.1531447095334; Thu, 12 Jul 2018 18:58:15 -0700 (PDT) MIME-Version: 1.0 References: <20180712000419.5165-1-pasha.tatashin@oracle.com> <20180712000419.5165-7-pasha.tatashin@oracle.com> In-Reply-To: <20180712000419.5165-7-pasha.tatashin@oracle.com> From: Pavel Tatashin Date: Thu, 12 Jul 2018 21:57:39 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v13 06/18] x86/xen/time: initialize pv xen time in init_hypervisor_platform To: Steven Sistare , Daniel Jordan , linux@armlinux.org.uk, schwidefsky@de.ibm.com, Heiko Carstens , John Stultz , sboyd@codeaurora.org, x86@kernel.org, LKML , mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, douly.fnst@cn.fujitsu.com, peterz@infradead.org, prarit@redhat.com, feng.tang@intel.com, Petr Mladek , gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8952 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=716 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807120253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -void __ref xen_init_time_ops(void) > +void __init xen_init_time_ops(void) > { > pv_time_ops = xen_time_ops; > > @@ -542,17 +542,11 @@ void __init xen_hvm_init_time_ops(void) > return; > > if (!xen_feature(XENFEAT_hvm_safe_pvclock)) { > - printk(KERN_INFO "Xen doesn't support pvclock on HVM," > - "disable pv timer\n"); > + pr_info("Xen doesn't support pvclock on HVM, disable pv timer"); > return; > } > - > - pv_time_ops = xen_time_ops; > + xen_init_time_ops(); > x86_init.timers.setup_percpu_clockev = xen_time_init; > x86_cpuinit.setup_percpu_clockev = xen_hvm_setup_cpu_clockevents; Boris reported a bug on HVM, which causes a panic in x86_late_time_init(). It is introduced here: xen_init_time_ops() sets: x86_init.timers.timer_init = xen_time_init; which was hpet_time_init() in HVM. However, we might not even need hpet here. Thus, adding x86_init.timers.timer_init = x86_init_noop; to the end of xen_hvm_init_time_ops() should be sufficient. Thank you, Pavel