Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • clocksource
  • hyperv_timer.c
Find file BlameHistoryPermalink
  • Dexuan Cui's avatar
    clocksource: hyper-v: Use lapic timer in a TDX VM without paravisor · 7f828d5f
    Dexuan Cui authored Jun 20, 2024
    
    
    In a TDX VM without paravisor, currently the default timer is the Hyper-V
    timer, which depends on the slow VM Reference Counter MSR: the Hyper-V TSC
    page is not enabled in such a VM because the VM uses Invariant TSC as a
    better clocksource and it's challenging to mark the Hyper-V TSC page shared
    in very early boot.
    
    Lower the rating of the Hyper-V timer so the local APIC timer becomes the
    the default timer in such a VM, and print a warning in case Invariant TSC
    is unavailable in such a VM. This change should cause no perceivable
    performance difference.
    
    Cc: stable@vger.kernel.org # 6.6+
    Reviewed-by: default avatarRoman Kisel <romank@linux.microsoft.com>
    Signed-off-by: default avatarDexuan Cui <decui@microsoft.com>
    Reviewed-by: default avatarMichael Kelley <mhklinux@outlook.com>
    Link: https://lore.kernel.org/r/20240621061614.8339-1-decui@microsoft.com
    
    
    Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
    Message-ID: <20240621061614.8339-1-decui@microsoft.com>
    7f828d5f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7