• Dong Jia Shi's avatar
    vfio: ccw: introduce channel program interfaces · 0a19e61e
    Dong Jia Shi authored
    Introduce ccwchain structure and helper functions that can be used to
    handle a channel program issued from a virtual machine.
    
    The following limitations apply:
    1. Supports only prefetch enabled mode.
    2. Supports idal(c64) ccw chaining.
    3. Supports 4k idaw.
    4. Supports ccw1.
    5. Supports direct ccw chaining by translating them to idal ccws.
    
    CCW translation requires to leverage the vfio_(un)pin_pages interfaces
    to pin/unpin sets of mem pages frequently. Currently we have a lack of
    support to do this in an efficient way. So we introduce pfn_array data
    structure and helper functions to handle pin/unpin operations here.
    Signed-off-by: default avatarDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
    Message-Id: <20170317031743.40128-6-bjsdjshi@linux.vnet.ibm.com>
    Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    0a19e61e
vfio_ccw_cp.h 1.21 KB