On 13.05.25 18:34, Fuad Tabba wrote:
Add arm64 support for handling guest page faults on guest_memfd backed memslots. For now, the fault granule is restricted to PAGE_SIZE. Signed-off-by: Fuad Tabba <tabba@xxxxxxxxxx> ---
[...]
+ if (!is_gmem) {
Should we add a comment somewhere, stating that we don't support VMs with private memory, so if we have a gmem, all faults are routed through that?
+ mmap_read_lock(current->mm); + vma = vma_lookup(current->mm, hva); + if (unlikely(!vma)) { + kvm_err("Failed to find VMA for hva 0x%lx\n", hva); + mmap_read_unlock(current->mm); + return -EFAULT; + } + + vfio_allow_any_uc = vma->vm_flags & VM_ALLOW_ANY_UNCACHED; + mte_allowed = kvm_vma_mte_allowed(vma);
-- Cheers, David / dhildenb