struct amdgpu_bo_list_entry vm_pd;
        struct ww_acquire_ctx ticket;
        struct list_head list, duplicates;
-       unsigned domain;
        int r;
 
        INIT_LIST_HEAD(&list);
                goto error_print;
 
        list_for_each_entry(entry, &list, head) {
-               domain = amdgpu_mem_type_to_domain(entry->bo->mem.mem_type);
+               struct amdgpu_bo *bo =
+                       container_of(entry->bo, struct amdgpu_bo, tbo);
+
                /* if anything is swapped out don't swap it in here,
                   just abort and wait for the next CS */
-               if (domain == AMDGPU_GEM_DOMAIN_CPU)
+               if (!amdgpu_bo_gpu_accessible(bo))
+                       goto error_unreserve;
+
+               if (bo->shadow && !amdgpu_bo_gpu_accessible(bo->shadow))
                        goto error_unreserve;
        }
+
        r = amdgpu_vm_validate_pt_bos(adev, bo_va->vm, amdgpu_gem_va_check,
                                      NULL);
        if (r)