• Zachary Amsden's avatar
    KVM: x86: Perform hardware_enable in CPU_STARTING callback · da908f2f
    Zachary Amsden authored
    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: default avatarZachary Amsden <zamsden@redhat.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    da908f2f
kvm_main.c 50.6 KB