• Alexander Graf's avatar
    KVM: PPC: Rework wqp conditional code · 2246f8b5
    Alexander Graf authored
    On PowerPC, we sometimes use a waitqueue per core, not per thread,
    so we can't always use the vcpu internal waitqueue.
    
    This code has been generalized by Christoffer Dall recently, but
    unfortunately broke compilation for PowerPC. At the time the helper
    function is defined, struct kvm_vcpu is not declared yet, so we can't
    dereference it.
    
    This patch moves all logic into the generic inline function, at which
    time we have all information necessary.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    2246f8b5
kvm_host.h 11.4 KB