Skip to content
  • Alexander Graf's avatar
    memory: Make eventfd adhere to device endianness · 28f362be
    Alexander Graf authored
    
    
    Our memory API MMIO regions know the concept of device endianness. This
    is used to automatically swap endianness between devices and host CPU,
    depending on whether buses in between would swizzle the bits.
    
    The ioeventfd value comparison does not adhere to that semantic though.
    Probably because nobody has been running ioeventfd on a BE platform and
    the only device implementing ioeventfd right now is LE (PCI) based.
    
    So add swizzling to ioeventfd registration / deletion to make the rest
    of the code as consistent as possible.
    
    Thanks a lot to Michael Tsirkin to point me towards the right direction.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    28f362be