]> www.infradead.org Git - users/dwmw2/linux.git/commit
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>
Fri, 13 Jan 2023 15:47:13 +0000 (10:47 -0500)
commitd80071eb35d891dfa7be3c6f65496f5dd49f2fba
treed385bebfe5c74a23d5457d0dc3af52b106f4bc78
parent0b6639e8ed878532f4c6db7e9d3bd46f2ce2cb61
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