linux/arch/mips/kvm
Sean Christopherson f257d6dcda KVM: Directly return result from kvm_arch_check_processor_compat()
Add a wrapper to invoke kvm_arch_check_processor_compat() so that the
boilerplate ugliness of checking virtualization support on all CPUs is
hidden from the arch specific code.  x86's implementation in particular
is quite heinous, as it unnecessarily propagates the out-param pattern
into kvm_x86_ops.

While the x86 specific issue could be resolved solely by changing
kvm_x86_ops, make the change for all architectures as returning a value
directly is prettier and technically more robust, e.g. s390 doesn't set
the out param, which could lead to subtle breakage in the (highly
unlikely) scenario where the out-param was not pre-initialized by the
caller.

Opportunistically annotate svm_check_processor_compat() with __init.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-06-04 19:27:32 +02:00
..
00README.txt
Kconfig Make anon_inodes unconditional 2019-04-19 14:03:11 +02:00
Makefile
callback.c
commpage.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
commpage.h
dyntrans.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
emulate.c MIPS: KVM: Use prandom_u32_max() to generate tlbwr index 2019-03-25 14:02:12 -07:00
entry.c
fpu.S
hypcall.c
interrupt.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
interrupt.h
mips.c KVM: Directly return result from kvm_arch_check_processor_compat() 2019-06-04 19:27:32 +02:00
mmu.c KVM: Make kvm_set_spte_hva() return int 2018-12-21 11:28:41 +01:00
msa.S
stats.c
tlb.c
trace.h
trap_emul.c MIPS: mm: Add set_cpu_context() for ASID assignments 2019-02-04 10:56:33 -08:00
vz.c MIPS: mm: Unify ASID version checks 2019-02-04 10:56:30 -08:00