summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>2020-01-31 12:56:55 -0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-05 15:28:07 +0100
commit64b38bd1906bb62a040b4e91815e56005db4784d (patch)
tree150605fae3625b5c78d460c7b3f30c224be2e7a2 /arch/mips
parent7df003c85218b5f5b10a7f6418208f31e813f38f (diff)
downloadlinux-64b38bd1906bb62a040b4e91815e56005db4784d.tar.gz
linux-64b38bd1906bb62a040b4e91815e56005db4784d.tar.bz2
linux-64b38bd1906bb62a040b4e91815e56005db4784d.zip
x86/kvm: do not setup pv tlb flush when not paravirtualized
kvm_setup_pv_tlb_flush will waste memory and print a misguiding message when KVM paravirtualization is not available. Intel SDM says that the when cpuid is used with EAX higher than the maximum supported value for basic of extended function, the data for the highest supported basic function will be returned. So, in some systems, kvm_arch_para_features will return bogus data, causing kvm_setup_pv_tlb_flush to detect support for pv tlb flush. Testing for kvm_para_available will work as it checks for the hypervisor signature. Besides, when the "nopv" command line parameter is used, it should not continue as well, as kvm_guest_init will no be called in that case. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions