[PATCH] KVM: update depracated and inappropriate jump label API

2021-01-15 Thread Cun Li
The use of 'struct static_key' and 'static_key_false' is deprecated. Use the new API. mmu_audit_key can only be true or false so it would be nice to use static_branch_enable()/static_branch_disable() for it and not static_key_slow_inc()/static_key_slow_dec(). Signed-off-by: C

Re: [PATCH] KVM: update depracated jump label API

2021-01-15 Thread Cun Li
Sorry for my late reply. Several final exams have delayed me these days. Thank you for your detailed advice!

[PATCH] KVM: update depracated jump label API

2021-01-11 Thread Cun Li
The use of 'struct static_key' and 'static_key_false' is deprecated. Use the new API. Signed-off-by: Cun Li --- arch/x86/kvm/lapic.h | 6 +++--- arch/x86/kvm/mmu/mmu_audit.c | 4 ++-- arch/x86/kvm/x86.c | 2 +- 3 files changed, 6 insertions(+), 6 deleti