• A
    KVM: PPC: Make large pages work · 4b5c9b7f
    Alexander Graf 提交于
    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: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    4b5c9b7f
kvm_book3s.h 3.8 KB