• Z
    KVM: x86: Perform hardware_enable in CPU_STARTING callback · da908f2f
    Zachary Amsden 提交于
    The CPU_STARTING callback was added upstream with the intention
    of being used for KVM, specifically for the hardware enablement
    that must be done before we can run in hardware virt.  It had
    bugs on the x86_64 architecture at the time, where it was called
    after CPU_ONLINE.  The arches have since merged and the bug is
    gone.
    
    It might be noted other features should probably start making
    use of this callback; microcode updates in particular which
    might be fixing important erratums would be best applied before
    beginning to run user tasks.
    Signed-off-by: NZachary Amsden <zamsden@redhat.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    da908f2f
kvm_main.c 50.6 KB