• Alexander Graf's avatar
    KVM: PPC: Make large pages work · 4b5c9b7f
    Alexander Graf authored
    An SLB entry contains two pieces of information related to size:
    
      1) PTE size
      2) SLB size
    
    The L bit defines the PTE be "large" (usually means 16MB),
    SLB_VSID_B_1T defines that the SLB should span 1 GB instead of the
    default 256MB.
    
    Apparently I messed things up and just put those two in one box,
    shaked it heavily and came up with the current code which handles
    large pages incorrectly, because it also treats large page SLB entries
    as "1TB" segment entries.
    
    This patch splits those two features apart, making Linux guests boot
    even when they have > 256MB.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    4b5c9b7f
kvm_book3s.h 3.75 KB