Skip to content
  • Alexey Kardashevskiy's avatar
    spapr_iommu: Enable multiple TCE requests · da95324e
    Alexey Kardashevskiy authored
    
    
    Currently only single TCE entry per request is supported (H_PUT_TCE).
    However PAPR+ specification allows multiple entry requests such as
    H_PUT_TCE_INDIRECT and H_STUFF_TCE. Having less transitions to the host
    kernel via ioctls, support of these calls can accelerate IOMMU operations.
    
    This implements H_STUFF_TCE and H_PUT_TCE_INDIRECT.
    
    This advertises "multi-tce" capability to the guest if the host kernel
    supports it (KVM_CAP_SPAPR_MULTITCE) or guest is running in TCG mode.
    
    Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    da95324e