• M
    virtio: memory access APIs · eef960a0
    Michael S. Tsirkin 提交于
    virtio 1.0 makes all memory structures LE, so
    we need APIs to conditionally do a byteswap on BE
    architectures.
    
    To make it easier to check code statically,
    add virtio specific types for multi-byte integers
    in memory.
    
    Add low level wrappers that do a byteswap conditionally, these will be
    useful e.g. for vhost.  Add high level wrappers that
    query device endian-ness and act accordingly.
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
    
    
    
    eef960a0
virtio_config.h 10.5 KB