]> git.baikalelectronics.ru Git - kernel.git/commit
x86: kvm: remove useless calls to kvm_para_available
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Jul 2019 10:59:40 +0000 (12:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Aug 2019 10:55:50 +0000 (12:55 +0200)
commit6a3313bcd43e2e1f3e8c144fea38ab48133191db
tree93a9e8ab543de097e799f69b513abae2fc30bc68
parent8ca05107a4c9ddc22656cc9f0fd0807b7d593f08
x86: kvm: remove useless calls to kvm_para_available

Most code in arch/x86/kernel/kvm.c is called through x86_hyper_kvm, and thus only
runs if KVM has been detected.  There is no need to check again for the CPUID
base.

Cc: Sergio Lopez <slp@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c