-
- Downloads
KVM: x86: allow defining return-0 static calls
A few vendor callbacks are only used by VMX, but they return an integer or bool value. Introduce KVM_X86_OP_OPTIONAL_RET0 for them: if a func is NULL in struct kvm_x86_ops, it will be changed to __static_call_return0 when updating static calls. Reviewed-by:Sean Christopherson <seanjc@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm-x86-ops.h 9 additions, 6 deletionsarch/x86/include/asm/kvm-x86-ops.h
- arch/x86/include/asm/kvm_host.h 4 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm/avic.c 0 additions, 5 deletionsarch/x86/kvm/svm/avic.c
- arch/x86/kvm/svm/svm.c 0 additions, 20 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/x86.c 2 additions, 2 deletionsarch/x86/kvm/x86.c
- kernel/static_call.c 1 addition, 0 deletionskernel/static_call.c
Loading
Please register or sign in to comment