cpu/SMT: create and export cpu_smt_possible()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 16 Sep 2019 16:22:56 +0000 (18:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:28 +0000 (13:37 +0200)
commite1572f1d08be57a5412a464cff0712a23cd0b73e
treed1ee6d7671cd371c765778c9a73777a823dfe848
parenta073d7e3ad687a7ef32b65affe80faa7ce89bf92
cpu/SMT: create and export cpu_smt_possible()

KVM needs to know if SMT is theoretically possible, this means it is
supported and not forcefully disabled ('nosmt=force'). Create and
export cpu_smt_possible() answering this question.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/cpu.h
kernel/cpu.c