Skip to content
  • Andre Przywara's avatar
    virtio: fix endianness check for vhost support · b960f243
    Andre Przywara authored
    
    
    Currently we deny any VHOST_* functionality if the architecture
    supports guests with different endianness than the host. Most of the
    time even on those architectures the endianness of guest and host are
    the same, though, so we are denying the glory of VHOST needlessly.
    Switch from compile time determination to a run time scheme, which
    takes the actual endianness of the guest into account.
    For this we change the semantics of VIRTIO_ENDIAN_HOST to return the
    actual endianness of the host (the endianness of kvmtool at compile
    time, really). The actual check in vhost_net now compares this against
    the guest endianness.
    This enables vhost support on ARM and ARM64.
    
    Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    b960f243