• Oliver Upton's avatar
    KVM: arm64: selftests: Don't identity map the ucall MMIO hole · 7a161425
    Oliver Upton authored
    Currently the ucall MMIO hole is placed immediately after slot0, which
    is a relatively safe address in the PA space. However, it is possible
    that the same address has already been used for something else (like the
    guest program image) in the VA space. At least in my own testing,
    building the vgic_irq test with clang leads to the MMIO hole appearing
    underneath gicv3_ops.
    
    Stop identity mapping the MMIO hole and instead find an unused VA to map
    to it. Yet another subtle detail of the KVM selftests library is that
    virt_pg_map() does not update vm->vpages_mapped. Switch over to
    virt_map() instead to guarantee that the chosen VA isn't to something
    else.
    Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
    Message-Id: <20221209015307.1781352-6-oliver.upton@linux.dev>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    7a161425
ucall.c 1.07 KB