• M
    target-i386: Support "invariant tsc" flag · 303752a9
    Marcelo Tosatti 提交于
    Expose "Invariant TSC" flag, if KVM is enabled. From Intel documentation:
    
    17.13.1 Invariant TSC The time stamp counter in newer processors may
    support an enhancement, referred to as invariant TSC. Processor’s
    support for invariant TSC is indicated by CPUID.80000007H:EDX[8].
    The invariant TSC will run at a constant rate in all ACPI P-, C-.
    and T-states. This is the architectural behavior moving forward. On
    processors with invariant TSC support, the OS may use the TSC for wall
    clock timer services (instead of ACPI or HPET timers). TSC reads are
    much more efficient and do not incur the overhead associated with a ring
    transition or access to a platform resource.
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    [ehabkost: redo feature filtering to use .tcg_features]
    [ehabkost: add CPUID_APM_INVTSC macro, add it to .unmigratable_flags]
    Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: NAndreas Färber <afaerber@suse.de>
    303752a9
cpu.h 40.7 KB