KVM: x86: Do timer initialization after XCR0 configuration
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:08:51 +0000 (23:08 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:40:51 +0000 (15:40 -0500)
commit1935542a04cc12cb360885a0ff5583d5e259c32f
tree29cf69f4022b47dfd72d76a83aedc2fc8558f323
parente43f576225cfbf6f27f5aa82de7f338cb7272352
KVM: x86: Do timer initialization after XCR0 configuration

Move kvm_arch_init()'s call to kvm_timer_init() down a few lines below
the XCR0 configuration code.  A future patch will move hardware setup
into kvm_arch_init() and slot in vendor hardware setup before the call
to kvm_timer_init() so that timer initialization (among other stuff)
doesn't need to be unwound if vendor setup fails.  XCR0 setup on the
other hand needs to happen before vendor hardware setup.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c