KVM: x86: Perform hardware_enable in CPU_STARTING callback
authorZachary Amsden <zamsden@redhat.com>
Fri, 20 Aug 2010 08:07:27 +0000 (22:07 -1000)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 9 Sep 2010 16:48:16 +0000 (13:48 -0300)
commitda908f2fb4e783c2a4de751fb90f11a0dd041161
tree0fb41e2650900f49fe36cd13046cdbe9fe5dec89
parenteebb5f31b8d9a2620dcf32297096f8ce1240b179
KVM: x86: Perform hardware_enable in CPU_STARTING callback

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: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c