Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Add cpuid hypervisor support to work with virtualization #17

Merged
merged 10 commits into from
Oct 30, 2019

Commits on Oct 24, 2019

  1. Add cpuid hypervisor support to work with visualization

    Issue: acidanthera/bugtracker#531
    For some reason that some msr not impletement in such hypervisor (QEMU/KVM/VMWare), so some logic may not work fine in a VM.
    This commit will add cpuid hypervisor support to indicate whether we are
    under visualization, then we do some tricks to make it work.
    Yuchen Liu authored and Leoyzen committed Oct 24, 2019
    Configuration menu
    Copy the full SHA
    a18376f View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2019

  1. Add VMWare Timing Support when it is under visualization.

    According to these links:
        1. [CPUID usage for interaction between Hypervisors and Linux.](https://lwn.net/Articles/301888/)
        2. [[Qemu-devel] [PATCH v2 0/3] x86-kvm: Fix Mac guest timekeeping by exposi](https://lists.gnu.org/archive/html/qemu-devel/2017-01/msg04344.html)
    
    There is a "VMWare Timing" Node located at 0x40000010 where we can get
    TSC/FSB Frequency.It is more sensable than get those freq in MSR which
    most hypervisor not implemented yet (KVM/VMWare).
    Leoyzen committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    7d11001 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95c8535 View commit details
    Browse the repository at this point in the history
  3. Fix some log issues

    Leoyzen committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    b5b299f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2019

  1. Configuration menu
    Copy the full SHA
    02385d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2019

  1. Configuration menu
    Copy the full SHA
    a0bfeae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f24a7a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ef4f74 View commit details
    Browse the repository at this point in the history
  4. fixup! More accurate to determine whether we already got CPU/FSB Freq…

    …uency from VMWare Timing
    Leoyzen committed Oct 27, 2019
    Configuration menu
    Copy the full SHA
    dc1ce69 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2019

  1. Configuration menu
    Copy the full SHA
    9bd05a7 View commit details
    Browse the repository at this point in the history