x86/kvm: Always inline to_svm()
vmlinux.o: warning: objtool: svm_vcpu_enter_exit()+0x13: call to to_svm() leaves .noinstr.text section Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210624095148.066347165@infradead.org
This commit is contained in:
@@ -271,7 +271,7 @@ static inline bool vmcb_is_dirty(struct vmcb *vmcb, int bit)
|
|||||||
return !test_bit(bit, (unsigned long *)&vmcb->control.clean);
|
return !test_bit(bit, (unsigned long *)&vmcb->control.clean);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu)
|
static __always_inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu)
|
||||||
{
|
{
|
||||||
return container_of(vcpu, struct vcpu_svm, vcpu);
|
return container_of(vcpu, struct vcpu_svm, vcpu);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user