• Haren Myneni's avatar
    powerpc/pseries/vas: Close windows with DLPAR core removal · 8ef7b9e1
    Haren Myneni authored
    The hypervisor assigns vas credits (windows) for each LPAR based
    on the number of cores configured in that system. The OS is
    expected to release credits when cores are removed, and may
    allocate more when cores are added. So there is a possibility of
    using excessive credits (windows) in the LPAR and the hypervisor
    expects the system to close the excessive windows so that NX load
    can be equally distributed across all LPARs in the system.
    
    When the OS closes the excessive windows in the hypervisor,
    it sets the window status inactive and invalidates window
    virtual address mapping. The user space receives paste instruction
    failure if any NX requests are issued on the inactive window.
    Then the user space can use with the available open windows or
    retry NX requests until this window active again.
    
    This patch also adds the notifier for core removal/add to close
    windows in the hypervisor if the system lost credits (core
    removal) and reopen windows in the hypervisor when the previously
    lost credits are available.
    Signed-off-by: default avatarHaren Myneni <haren@linux.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/108928f9c00a48cc6a722315d482d07cf66acf5a.camel@linux.ibm.com
    8ef7b9e1
vas.c 21.1 KB