• A
    virtio-net: fix cross-endianness support · 44b15bc5
    Aurelien Jarno 提交于
    virtio-net used to work on cross-endianness configurations, but doesn't
    anymore with recent guest kernels, as the new features don't handle
    endianness correctly.
    
    This patch fixes wrong conversion, and add missing ones to make
    virtio-net working. Tested on the following configurations:
    - i386 guest on x86_64 host
    - ppc guest on x86_64 host
    - i386 guest on mips host
    - ppc guest on mips host
    
    Cc: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    44b15bc5
virtio-net.c 31.0 KB