From patchwork Fri Oct 25 09:16:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11211807 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABA931920 for ; Fri, 25 Oct 2019 09:18:20 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 846492070B for ; Fri, 25 Oct 2019 09:18:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="agu1i4zI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 846492070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNviA-0007lw-2b; Fri, 25 Oct 2019 09:16:46 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNvi8-0007li-My for xen-devel@lists.xenproject.org; Fri, 25 Oct 2019 09:16:44 +0000 X-Inumbo-ID: 294333b6-f708-11e9-beca-bc764e2007e4 Received: from mail-wr1-x443.google.com (unknown [2a00:1450:4864:20::443]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 294333b6-f708-11e9-beca-bc764e2007e4; Fri, 25 Oct 2019 09:16:44 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id a11so1436629wra.6 for ; Fri, 25 Oct 2019 02:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yUjvS26V+6Ayn8aWMZZsb7UEm0WpdBsfjg+osF6kr3E=; b=agu1i4zIDKdAf5YMSyGwnWMZhVq0yXBDIkmn2gkwWsB0sMcEc90lfrzTaLxYcoEHIz l8hqtcZ1yioBfWxC7Vk5Tb3LWIX2BR9kI11IjB0c8vqN1EYbCDbLCDCEPKHndq29GVvx 1C8gMRN3fM80WvWpcYvb2Lr+dvWl3LFr30rZtxwr4MkWMznj+oL/h9+PeyXSpzfwo2Qc LOTdqdDJDIGTbjaMVsARa80dQoqC9tlwACM3yrw4fLATIxYnRJcKB6Zq++qeox7RSYQD OxBcr57KaeDmuzHn66padKpPZZKLTPW0snIaYvNCgEH9xaQUEXkx/ZF90uxx52n3UIuk /otQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=yUjvS26V+6Ayn8aWMZZsb7UEm0WpdBsfjg+osF6kr3E=; b=I5Oobh+zii5o5LsMpf5RM7Hc0mMU7mxG46s3I58przWqR7OM2cMn45QxkHiC6EMXOa WQQcyiugVr6DjbKzvQDAuE8r2UbMpLthSolZPFZhDnIBWm/F1okahX5erlKurGTkrLqB /LureUyRBw4l7QADb7ugL2sN3EU7rWiLWL12eyR6whphyfiZ26a+tqSUuwgiq1ZlIq8A wjJcx3wTh368lYphuPgTMSGVd5wsPC/NHfWHOaUJzg9w7F+ClYKM04JktRkmbHWM5a6A K3F7c8GwtxJYEeKMu0Cfh9RgEQBjCm2ws8+2A/Iv/MaUrix130d5En7KYbpSbGtxTyQ7 t3gQ== X-Gm-Message-State: APjAAAXr80BM3jZrCmf2a+2P2wFor5Dh2Spjg0oMsnc45NFWkX5p8Z/D DWidWQXNCZpLYjnk9N/LRrLSy50C3I8= X-Google-Smtp-Source: APXvYqwcnOy76Ahkd54ZHOPr/ICGd6KIqRXN+iq671jGK2G/LZROi54eRmDhC1C06Y6rOnXBVwnFuA== X-Received: by 2002:adf:db42:: with SMTP id f2mr2088042wrj.287.1571995003075; Fri, 25 Oct 2019 02:16:43 -0700 (PDT) Received: from debian.mshome.net (54.163.200.146.dyn.plus.net. [146.200.163.54]) by smtp.gmail.com with ESMTPSA id b62sm1873283wmc.13.2019.10.25.02.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 02:16:42 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Fri, 25 Oct 2019 10:16:11 +0100 Message-Id: <20191025091618.10153-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH for-next 0/7] Implement Hyper-V reference TSC based clock source X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Wei Liu , Paul Durrant , Andrew Cooper , Michael Kelley , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all This series adds a clock source based on Hyper-V's reference TSC. The meat is in the last patch. With this series, Xen on Hyper-V no longer runs on emulated PIT. (XEN) Platform timer is 2294.686MHz HYPER-V REFERENCE TSC This series depends on [0]. Wei. 0: https://lists.xen.org/archives/html/xen-devel/2019-10/msg01420.html Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Cc: Paul Durrant Wei Liu (7): x86: import hyperv-tlfs.h from Linux x86: fix up hyperv-tlfs.h x86/hyperv: extract more information from Hyper-V x86: add a comment regarding the location of hypervisor_probe x86: use running_on_hypervisor to gate hypervisor_setup x86/hyperv: provide hyperv_guest variable x86: implement Hyper-V clock source xen/arch/x86/guest/hyperv/hyperv.c | 17 + xen/arch/x86/setup.c | 6 +- xen/arch/x86/time.c | 87 +++ xen/include/asm-x86/guest/hyperv-tlfs.h | 907 ++++++++++++++++++++++++ xen/include/asm-x86/guest/hyperv.h | 14 + 5 files changed, 1030 insertions(+), 1 deletion(-) create mode 100644 xen/include/asm-x86/guest/hyperv-tlfs.h