• A
    Use Little Endian for Dirty Bitmap · c8240bd6
    Alexander Graf 提交于
    We currently use host endian long types to store information
    in the dirty bitmap.
    
    This works reasonably well on Little Endian targets, because the
    u32 after the first contains the next 32 bits. On Big Endian this
    breaks completely though, forcing us to be inventive here.
    
    So Ben suggested to always use Little Endian, which looks reasonable.
    
    We only have dirty bitmap implemented in Little Endian targets so far
    and since PowerPC would be the first Big Endian platform, we can just
    as well switch to Little Endian always with little effort without
    breaking existing targets.
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    c8240bd6
kvm_main.c 63.1 KB