• Suzuki K Poulose's avatar
    kvm: arm64: Switch to per VM IPA limit · 13ac4bbc
    Suzuki K Poulose authored
    Now that we can manage the stage2 page table per VM, switch the
    configuration details to per VM instance. The VTCR is updated
    with the values specific to the VM based on the configuration.
    We store the IPA size and the number of stage2 page table levels
    for the guest already in VTCR. Decode it back from the vtcr
    field wherever we need it.
    
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Christoffer Dall <cdall@kernel.org>
    Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    13ac4bbc
kvm_mmu.h 15.7 KB