OSDN Git Service

KVM: Stop using deprecated jump label APIs
authorCun Li <cun.jia.li@gmail.com>
Mon, 11 Jan 2021 15:24:35 +0000 (23:24 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:29 +0000 (05:27 -0500)
commit6e4e3b4df4e31ed679de994540f308306f12234b
treed466df0546eecbecfd356ff2f60e08be44e6634d
parent14c2bf81fcd2226ca7fb9b179320ca1ca7cb581a
KVM: Stop using deprecated jump label APIs

The use of 'struct static_key' and 'static_key_false' is
deprecated. Use the new API.

Signed-off-by: Cun Li <cun.jia.li@gmail.com>
Message-Id: <20210111152435.50275-1-cun.jia.li@gmail.com>
[Make it compile.  While at it, rename kvm_no_apic_vcpu to
 kvm_has_noapic_vcpu; the former reads too much like "true if
 no vCPU has an APIC". - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/mmu/mmu_audit.c
arch/x86/kvm/x86.c