• Yu Zhang's avatar
    KVM: MMU: Add 5 level EPT & Shadow page table support. · 855feb67
    Yu Zhang authored
    Extends the shadow paging code, so that 5 level shadow page
    table can be constructed if VM is running in 5 level paging
    mode.
    
    Also extends the ept code, so that 5 level ept table can be
    constructed if maxphysaddr of VM exceeds 48 bits. Unlike the
    shadow logic, KVM should still use 4 level ept table for a VM
    whose physical address width is less than 48 bits, even when
    the VM is running in 5 level paging mode.
    Signed-off-by: default avatarYu Zhang <yu.c.zhang@linux.intel.com>
    [Unconditionally reset the MMU context in kvm_cpuid_update.
     Changing MAXPHYADDR invalidates the reserved bit bitmasks.
     - Paolo]
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    855feb67
kvm_host.h 41.1 KB