• Harald Freudenberger's avatar
    s390/ap: Refine AP bus bindings complete processing · b4f5bd60
    Harald Freudenberger authored
    With the rework of the AP bus scan and the introduction of
    a bindings complete completion also the timing until the
    userspace finally receives a AP bus binding complete uevent
    had increased. Unfortunately this event triggers some important
    jobs for preparation of KVM guests, for example the modification
    of card/queue masks to reassign AP resources to the alternate
    AP queue device driver (vfio_ap) which is the precondition
    for building mediated devices which may be a precondition for
    starting KVM guests using AP resources.
    
    This small fix now triggers the check for binding complete
    each time an AP device driver has registered. With this patch
    the bindings complete may be posted up to 30s earlier as there
    is no need to wait for the next AP bus scan any more.
    
    Fixes: 778412ab ("s390/ap: rearm APQNs bindings complete completion")
    Signed-off-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
    Reviewed-by: default avatarHolger Dengler <dengler@linux.ibm.com>
    Cc: stable@vger.kernel.org
    Acked-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    b4f5bd60
ap_bus.c 61.9 KB